Make sure we handle multiple arguments to sync_file_range
[fio.git] / options.c
index bee15cf9586af5bf9eeb9171a2606c765356bec4..dda7cba1bdf16b17f6ea009b722ce8ed79ecc38c 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1131,18 +1131,21 @@ static struct fio_option options[FIO_MAX_OPTS] = {
                          { .ival = "wait_before",
                            .oval = SYNC_FILE_RANGE_WAIT_BEFORE,
                            .help = "SYNC_FILE_RANGE_WAIT_BEFORE",
+                           .or   = 1,
                          },
                          { .ival = "write",
                            .oval = SYNC_FILE_RANGE_WRITE,
                            .help = "SYNC_FILE_RANGE_WRITE",
+                           .or   = 1,
                          },
                          {
                            .ival = "wait_after",
                            .oval = SYNC_FILE_RANGE_WAIT_AFTER,
                            .help = "SYNC_FILE_RANGE_WAIT_AFTER",
+                           .or   = 1,
                          },
                },
-               .type   = FIO_OPT_STR,
+               .type   = FIO_OPT_STR_MULTI,
                .cb     = str_sfr_cb,
                .off1   = td_var_offset(sync_file_range),
                .help   = "Use sync_file_range()",