Fix cpumask setting/getting on older kernels
[fio.git] / options.c
index 230c47dd22b48171277bc62392f98267c930a501..e67742ddec211043e1bdceadeae9b0ed5f375282 100644 (file)
--- a/options.c
+++ b/options.c
@@ -117,6 +117,7 @@ static int str_cpumask_cb(void *data, unsigned int *val)
        struct thread_data *td = data;
 
        fill_cpu_mask(td->o.cpumask, *val);
+       td->o.cpumask_set = 1;
        return 0;
 }
 
@@ -852,6 +853,15 @@ static struct fio_option options[] = {
                .off1   = td_var_offset(zero_buffers),
                .help   = "Init IO buffers to all zeroes",
        },
+#ifdef FIO_HAVE_DISK_UTIL
+       {
+               .name   = "disk_util",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(do_disk_util),
+               .help   = "Log disk utilization stats",
+               .def    = "1",
+       },
+#endif
        {
                .name = NULL,
        },