Make iodepth_batch=1 by default
[fio.git] / options.c
index d17dbb1cd6f45696866822a0b190fb77129331e6..3de2ae615fb3d1683625ce42f9b0ad9d7947eb13 100644 (file)
--- a/options.c
+++ b/options.c
@@ -504,6 +504,8 @@ static struct fio_option options[] = {
                .off1   = td_var_offset(iodepth_batch),
                .help   = "Number of IO to submit in one go",
                .parent = "iodepth",
                .off1   = td_var_offset(iodepth_batch),
                .help   = "Number of IO to submit in one go",
                .parent = "iodepth",
+               .minval = 1,
+               .def    = "1",
        },
        {
                .name   = "iodepth_low",
        },
        {
                .name   = "iodepth_low",