File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ int main(int argc, char *argv[])
80
80
print_elapse (start_t , elapse_t );
81
81
printf ("\n" );
82
82
83
- printf ("\nTest file sync methods\n" );
83
+ printf ("\nTest file sync methods: \n" );
84
84
85
85
#ifdef OPEN_DATASYNC_FLAG
86
86
/* open_dsync, write */
@@ -93,8 +93,10 @@ int main(int argc, char *argv[])
93
93
unlink ("/var/tmp/test_fsync.out" );
94
94
printf ("open o_dsync, write " );
95
95
print_elapse (start_t , elapse_t );
96
- printf ("\n" );
96
+ #else
97
+ printf ("o_dsync unavailable " );
97
98
#endif
99
+ printf ("\n" );
98
100
99
101
/* open_fsync, write */
100
102
gettimeofday (& start_t , NULL );
@@ -120,8 +122,10 @@ int main(int argc, char *argv[])
120
122
unlink ("/var/tmp/test_fsync.out" );
121
123
printf ("write, fdatasync " );
122
124
print_elapse (start_t , elapse_t );
123
- printf ("\n" );
125
+ #else
126
+ printf ("fdatasync unavailable " );
124
127
#endif
128
+ printf ("\n" );
125
129
126
130
/* write, fsync, close */
127
131
gettimeofday (& start_t , NULL );
You can’t perform that action at this time.
0 commit comments