f2fs_io: add OSYNC option
PATCH 1/1 f2fs_io: add OSYNC option
Signed-off-by Jaegeuk Kim <[email protected]>
--- tools/f2fs_io/f2fs_io.c | 3 +++ 1 file changed, 3 insertions(+)
tools/f2fs_io/f2fs_io.c +3 -0
@@ -424,6 +424,7 @@ static void do_fallocate(int argc, char **argv, const struct cmd_desc *cmd)"IO can be\n" \" buffered : buffered IO\n" \" dio : direct IO\n" \ +" osync : O_SYNC\n" \ static void do_write(int argc, char **argv, const struct cmd_desc *cmd) {
@@ -460,6 +461,8 @@ static void do_write(int argc, char **argv, const struct cmd_desc *cmd)if (!strcmp (argv[5 ],"dio" )) flags |=O_DIRECT ; +else if (!strcmp (argv[5 ],"osync" )) + flags |=O_SYNC ;else if (strcmp (argv[5 ],"buffered" ))die ("Wrong IO type" );
Signature · 8 lines
2.28.0.220.ged08abb693-goog _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 1 line · Jaegeuk Kim
Signed-off-by Jaegeuk Kim <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel