Don't malloc more than necessary on extending/prereading file
[fio.git] / options.c
index dcf0eeabba188c718170554e156e774d5d54250d..e0deab0a4d1020eed452078b521341a4c514bc15 100644 (file)
--- a/options.c
+++ b/options.c
@@ -3865,6 +3865,16 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
                .category = FIO_OPT_C_STAT,
                .group  = FIO_OPT_G_INVALID,
        },
+       {
+               .name   = "stats",
+               .lname  = "Stats",
+               .type   = FIO_OPT_BOOL,
+               .off1   = offsetof(struct thread_options, stats),
+               .help   = "Enable collection of stats",
+               .def    = "1",
+               .category = FIO_OPT_C_STAT,
+               .group  = FIO_OPT_G_INVALID,
+       },
        {
                .name   = "zero_buffers",
                .lname  = "Zero I/O buffers",