Collect a block-wise histogram of trim and write errors
[fio.git] / init.c
diff --git a/init.c b/init.c
index 95e26b8f4624fee73bf59863a52b4a7fac58d460..a126f79f1b9c1a4b20bd388f71013d35179e2b86 100644 (file)
--- a/init.c
+++ b/init.c
@@ -767,6 +767,13 @@ static int fixup_options(struct thread_data *td)
        if (!td->loops)
                td->loops = 1;
 
+       if (td->o.block_error_hist && td->o.nr_files != 1) {
+               log_err("fio: block error histogram only available with "
+                       "with a single file per job, but %d files "
+                       "provided\n", td->o.nr_files);
+               ret = 1;
+       }
+
        return ret;
 }