Add support for fdatasync()
Adds a new option, fdatasync=. It's identical to the fsync= option,
but uses fdatasync() instead.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/options.c b/options.c
index 9606ab2..394472a 100644
--- a/options.c
+++ b/options.c
@@ -932,6 +932,13 @@
.def = "0",
},
{
+ .name = "fdatasync",
+ .type = FIO_OPT_INT,
+ .off1 = td_var_offset(fdatasync_blocks),
+ .help = "Issue fdatasync for writes every given number of blocks",
+ .def = "0",
+ },
+ {
.name = "direct",
.type = FIO_OPT_BOOL,
.off1 = td_var_offset(odirect),