print_elapse(start_t, elapse_t);
printf("\n");
- printf("\nTest file sync methods\n");
+ printf("\nTest file sync methods:\n");
#ifdef OPEN_DATASYNC_FLAG
/* open_dsync, write */
unlink("/var/tmp/test_fsync.out");
printf("open o_dsync, write ");
print_elapse(start_t, elapse_t);
- printf("\n");
+#else
+ printf("o_dsync unavailable ");
#endif
+ printf("\n");
/* open_fsync, write */
gettimeofday(&start_t, NULL);
unlink("/var/tmp/test_fsync.out");
printf("write, fdatasync ");
print_elapse(start_t, elapse_t);
- printf("\n");
+#else
+ printf("fdatasync unavailable ");
#endif
+ printf("\n");
/* write, fsync, close */
gettimeofday(&start_t, NULL);