Add option to disable fadvise() hints
[fio.git] / options.c
index 41ecd7fdd0d7818736c609a3108d6268e9c8f3e9..4f30f2c1991aaf8769e2802d4dceef7cb0d83a34 100644 (file)
--- a/options.c
+++ b/options.c
@@ -36,8 +36,6 @@ static int str_rw_cb(void *data, const char *str)
        if (nr)
                td->o.ddir_nr = atoi(nr);
 
-       printf("ddir_nr=%d\n", td->o.ddir_nr);
-
        return 0;
 }
 
@@ -248,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,