Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ddecd1

Browse files
committed
Mention which fsync methods are unavailable.
1 parent69138a9 commit5ddecd1

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
#ifdefOPEN_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)

[8]ページ先頭

©2009-2025 Movatter.jp