X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=754eb81fccfe1a14f6949f30d07475ea09acc834;hp=7d4396e81d1aa637748bd135c52e520c09beb7ca;hb=e9459e5a14b577ead39d666c051c7ce4db12bc75;hpb=d23bb327374520295509bbd98912c8091b701a3e;ds=sidebyside diff --git a/options.c b/options.c index 7d4396e8..754eb81f 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, @@ -814,6 +826,12 @@ static struct fio_option options[] = { .off1 = td_var_offset(group_reporting), .help = "Do reporting on a per-group basis", }, + { + .name = "zero_buffers", + .type = FIO_OPT_STR_SET, + .off1 = td_var_offset(zero_buffers), + .help = "Init IO buffers to all zeroes", + }, { .name = NULL, }, @@ -896,7 +914,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 }