Add create_on_open option
[fio.git] / options.c
index cec7bb79d2422b19f79df258b784c0ab033fbc4b..73815bb0d1d4a6d74d9984b54b98b37ec3b55921 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1289,6 +1289,13 @@ static struct fio_option options[] = {
                .help   = "Fsync file after creation",
                .def    = "1",
        },
+       {
+               .name   = "create_on_open",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(create_on_open),
+               .help   = "Create files when they are opened for IO",
+               .def    = "0",
+       },
        {
                .name   = "cpuload",
                .type   = FIO_OPT_INT,