X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=5252477b6e0756888d6cc3bd42b8dcdc5b492e4b;hp=06ac6596292851ed0f95a4df8d096a513076026b;hb=a37f69b72a74cbde6151458b890aab8d093f0c9f;hpb=f20485ad77872d6c5084dead547420386a6ecd5e diff --git a/options.c b/options.c index 06ac6596..5252477b 100644 --- a/options.c +++ b/options.c @@ -102,7 +102,7 @@ static int bssplit_ddir(struct thread_data *td, int ddir, char *str) } else perc = -1; - if (str_to_decimal(fname, &val, 1, 1, td)) { + if (str_to_decimal(fname, &val, 1, td)) { log_err("fio: bssplit conversion failed\n"); free(td->o.bssplit); return 1; @@ -213,7 +213,7 @@ static int str_rw_cb(void *data, const char *str) else { long long val; - if (str_to_decimal(nr, &val, 1, 0, td)) { + if (str_to_decimal(nr, &val, 1, td)) { log_err("fio: rw postfix parsing failed\n"); free(nr); return 1; @@ -1966,6 +1966,13 @@ static struct fio_option options[FIO_MAX_OPTS] = { .off1 = td_var_offset(refill_buffers), .help = "Refill IO buffers on every IO submit", }, + { + .name = "scramble_buffers", + .type = FIO_OPT_BOOL, + .off1 = td_var_offset(scramble_buffers), + .help = "Slightly scramble buffers on every IO submit", + .def = "1", + }, { .name = "clat_percentiles", .type = FIO_OPT_BOOL,