X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=options.c;h=55d11ae719aaf0e3c4af957b99df3a9d3948be63;hb=3f77f72359e90175d86d549e82c9b2a3488df6dc;hp=ae5bcc5bca06f409132b474e11555dce5c0f8c1f;hpb=03e20d687566753b90383571e5e152c5142bdffd;p=fio.git diff --git a/options.c b/options.c index ae5bcc5b..55d11ae7 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; } @@ -913,7 +918,7 @@ static struct fio_option options[FIO_MAX_OPTS] = { .type = FIO_OPT_STR_STORE, .off1 = td_var_offset(ioengine), .help = "IO engine to use", - .def = "sync", + .def = FIO_PREFERRED_ENGINE, .posval = { { .ival = "sync", .help = "Use read/write", @@ -941,12 +946,12 @@ static struct fio_option options[FIO_MAX_OPTS] = { #endif #ifdef FIO_HAVE_WINDOWSAIO { .ival = "windowsaio", - .help = "Windows native asynchronous IO" + .help = "Windows native asynchronous IO" }, +#endif { .ival = "mmap", .help = "Memory mapped IO" }, -#endif #ifdef FIO_HAVE_SPLICE { .ival = "splice", .help = "splice/vmsplice based IO", @@ -1032,6 +1037,7 @@ static struct fio_option options[FIO_MAX_OPTS] = { }, { .name = "fill_device", + .alias = "fill_fs", .type = FIO_OPT_BOOL, .off1 = td_var_offset(fill_device), .help = "Write until an ENOSPC error occurs", @@ -1466,6 +1472,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,