Disk stat improvements
Add an option to disable the disk stats. And only dump the disk
stat header, if we actually have stats to show.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/options.c b/options.c
index 230c47d..54ceaee 100644
--- a/options.c
+++ b/options.c
@@ -852,6 +852,15 @@
.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,
},