Add zero_buffers option
[fio.git] / options.c
index 5401f90339bf7da688b8e645656cec3a24ee7228..754eb81fccfe1a14f6949f30d07475ea09acc834 100644 (file)
--- a/options.c
+++ b/options.c
@@ -538,6 +538,13 @@ static struct fio_option options[] = {
                          },
                },
        },
+       {
+               .name   = "verifysort",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(verifysort),
+               .help   = "Sort written verify blocks for read back",
+               .def    = "1",
+       },
        {
                .name   = "write_iolog",
                .type   = FIO_OPT_STR_STORE,
@@ -819,6 +826,12 @@ static struct fio_option options[] = {
                .off1   = td_var_offset(group_reporting),
                .help   = "Do reporting on a per-group basis",
        },
+       {
+               .name   = "zero_buffers",
+               .type   = FIO_OPT_STR_SET,
+               .off1   = td_var_offset(zero_buffers),
+               .help   = "Init IO buffers to all zeroes",
+       },
        {
                .name = NULL,
        },
@@ -901,7 +914,9 @@ void options_mem_dupe(struct thread_data *td)
        __options_mem(td, 1);
 }
 
-void options_mem_free(struct thread_data *td)
+void options_mem_free(struct thread_data fio_unused *td)
 {
+#if 0
        __options_mem(td, 0);
+#endif
 }