X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=options.c;h=163e50899e4122d322f4a293b496b95b67d11811;hb=996936f995c47f4744a49e05419e7d4c0364c64e;hp=ae5bcc5bca06f409132b474e11555dce5c0f8c1f;hpb=63a582671fe6db03f0a0be81843f2b72bbc8ab33;p=fio.git diff --git a/options.c b/options.c index ae5bcc5b..163e5089 100644 --- a/options.c +++ b/options.c @@ -675,6 +675,11 @@ static int str_verify_pattern_cb(void *data, const char *input) } } td->o.verify_pattern_bytes = i; + /* + * VERIFY_META could already be set + */ + if (td->o.verify == VERIFY_NONE) + td->o.verify = VERIFY_PATTERN; return 0; } @@ -1466,6 +1471,14 @@ static struct fio_option options[FIO_MAX_OPTS] = { .help = "Exit on a single verify failure, don't continue", .parent = "verify", }, + { + .name = "verify_dump", + .type = FIO_OPT_BOOL, + .off1 = td_var_offset(verify_dump), + .def = "1", + .help = "Dump contents of good and bad blocks on failure", + .parent = "verify", + }, { .name = "verify_async", .type = FIO_OPT_INT,