Add option to disable fadvise() hints
[fio.git] / options.c
index 6a015c0d7d167e588955d45fc1e76983fad3b6ef..4f30f2c1991aaf8769e2802d4dceef7cb0d83a34 100644 (file)
--- a/options.c
+++ b/options.c
@@ -246,6 +246,13 @@ static struct fio_option options[] = {
                          },
                },
        },
+       {
+               .name   = "fadvise_hint",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(fadvise_hint),
+               .help   = "Use fadvise() to advise the kernel on IO pattern",
+               .def    = "1",
+       },
        {
                .name   = "ioengine",
                .type   = FIO_OPT_STR_STORE,