X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=options.c;h=1e91b3e9e23a79eb780b35c22e9cd7681e82ab58;hb=7914c6147adaf3ef32804519ced850168fff1711;hp=b497d973eb03b12852d9ce499ab108ec24457f8f;hpb=be23e6be4fadb723f925824f88fbaedbd3502251;p=fio.git diff --git a/options.c b/options.c index b497d973..1e91b3e9 100644 --- a/options.c +++ b/options.c @@ -3733,14 +3733,32 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { { .name = "sync", .lname = "Synchronous I/O", - .type = FIO_OPT_BOOL, + .type = FIO_OPT_STR, .off1 = offsetof(struct thread_options, sync_io), - .help = "Use O_SYNC for buffered writes", - .def = "0", - .parent = "buffered", + .help = "Use synchronous write IO", + .def = "none", .hide = 1, .category = FIO_OPT_C_IO, .group = FIO_OPT_G_IO_TYPE, + .posval = { + { .ival = "none", + .oval = 0, + }, + { .ival = "0", + .oval = 0, + }, + { .ival = "sync", + .oval = O_SYNC, + }, + { .ival = "1", + .oval = O_SYNC, + }, +#ifdef O_DSYNC + { .ival = "dsync", + .oval = O_DSYNC, + }, +#endif + }, }, #ifdef FIO_HAVE_WRITE_HINT {