Skip to content

Commit 5ddecd1

Browse files
committed
Mention which fsync methods are unavailable.
1 parent 69138a9 commit 5ddecd1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/tools/fsync/test_fsync.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
8080
print_elapse(start_t, elapse_t);
8181
printf("\n");
8282

83-
printf("\nTest file sync methods\n");
83+
printf("\nTest file sync methods:\n");
8484

8585
#ifdef OPEN_DATASYNC_FLAG
8686
/* open_dsync, write */
@@ -93,8 +93,10 @@ int main(int argc, char *argv[])
9393
unlink("/var/tmp/test_fsync.out");
9494
printf("open o_dsync, write ");
9595
print_elapse(start_t, elapse_t);
96-
printf("\n");
96+
#else
97+
printf("o_dsync unavailable ");
9798
#endif
99+
printf("\n");
98100

99101
/* open_fsync, write */
100102
gettimeofday(&start_t, NULL);
@@ -120,8 +122,10 @@ int main(int argc, char *argv[])
120122
unlink("/var/tmp/test_fsync.out");
121123
printf("write, fdatasync ");
122124
print_elapse(start_t, elapse_t);
123-
printf("\n");
125+
#else
126+
printf("fdatasync unavailable ");
124127
#endif
128+
printf("\n");
125129

126130
/* write, fsync, close */
127131
gettimeofday(&start_t, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy