X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=f8e89f381bbd171fbed1877066f33c744dd7a6e1;hp=7d4396e81d1aa637748bd135c52e520c09beb7ca;hb=e48676baa53074b429460c71fb2c9e0ac7ac7d8c;hpb=d23bb327374520295509bbd98912c8091b701a3e diff --git a/options.c b/options.c index 7d4396e8..f8e89f38 100644 --- a/options.c +++ b/options.c @@ -32,7 +32,7 @@ static int str_rw_cb(void *data, const char *str) struct thread_data *td = data; char *nr = get_opt_postfix(str); - td->o.ddir_nr = 0; + td->o.ddir_nr = 1; if (nr) td->o.ddir_nr = atoi(nr); @@ -531,8 +531,20 @@ static struct fio_option options[] = { .oval = VERIFY_MD5, .help = "Use md5 checksums for verification", }, + { + .ival = "null", + .oval = VERIFY_NULL, + .help = "Pretend to verify", + }, }, }, + { + .name = "verifysort", + .type = FIO_OPT_BOOL, + .off1 = td_var_offset(verifysort), + .help = "Sort written verify blocks for read back", + .def = "1", + }, { .name = "write_iolog", .type = FIO_OPT_STR_STORE, @@ -896,7 +908,9 @@ void options_mem_dupe(struct thread_data *td) __options_mem(td, 1); } -void options_mem_free(struct thread_data *td) +void options_mem_free(struct thread_data fio_unused *td) { +#if 0 __options_mem(td, 0); +#endif }