'1' is minimum value for queue depth, don't allow 0
authorJens Axboe <jens.axboe@oracle.com>
Wed, 12 Dec 2007 18:42:13 +0000 (19:42 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 12 Dec 2007 18:42:13 +0000 (19:42 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
options.c

index 0fc9955729f55ce54ce4a66d7284f5db74778097..c56b9dfb63e8795e6b2dd623add21cb6c0c99a4e 100644 (file)
--- a/options.c
+++ b/options.c
@@ -396,6 +396,7 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_INT,
                .off1   = td_var_offset(iodepth),
                .help   = "Amount of IO buffers to keep in flight",
+               .minval = 1,
                .def    = "1",
        },
        {