Add pre_read option
With this option set, files will be pre-read into memory before
starting the given IO operation(s).
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/options.c b/options.c
index 9267f79..a45d1af 100644
--- a/options.c
+++ b/options.c
@@ -1334,6 +1334,13 @@
.help = "Create files when they are opened for IO",
.def = "0",
},
+ {
+ .name = "pre_read",
+ .type = FIO_OPT_BOOL,
+ .off1 = td_var_offset(pre_read),
+ .help = "Preread files before starting official testing",
+ .def = "0",
+ },
{
.name = "cpuload",
.type = FIO_OPT_INT,