Mark do_verify and verify_fatal as booleans
[fio.git] / options.c
index cd4b90a79271bc524d43d90ccfb9084c745f7dcc..f1ee6bcf1db868c44a9e0d212bd3172e71c24053 100644 (file)
--- a/options.c
+++ b/options.c
@@ -599,13 +599,6 @@ static struct fio_option options[] = {
 #endif
                  },
        },
-       {
-               .name   = "do_verify",
-               .type   = FIO_OPT_INT,
-               .off1   = td_var_offset(do_verify),
-               .help   = "Run verification stage after write",
-               .def    = "1",
-       },
        {
                .name   = "verify",
                .type   = FIO_OPT_STR,
@@ -656,6 +649,14 @@ static struct fio_option options[] = {
                          },
                },
        },
+       {
+               .name   = "do_verify",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(do_verify),
+               .help   = "Run verification stage after write",
+               .def    = "1",
+               .parent = "verify",
+       },
        {
                .name   = "verifysort",
                .type   = FIO_OPT_BOOL,
@@ -687,6 +688,14 @@ static struct fio_option options[] = {
                .help   = "Fill pattern for IO buffers",
                .parent = "verify",
        },
+       {
+               .name   = "verify_fatal",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(verify_fatal),
+               .def    = "0",
+               .help   = "Exit on a single verify failure, don't continue",
+               .parent = "verify",
+       },
        {
                .name   = "write_iolog",
                .type   = FIO_OPT_STR_STORE,