X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=d7ce94bb75c7129cf5e4ff2bc663143ef537d63b;hp=1857d4115f9a80234ec8aec2bb4a591405448a70;hb=0e4dd95c548cca2e7bef7db3696231130cb4b594;hpb=56d9fa4b8d4fa5166e3ec5dcdd37b5789b2cb01d diff --git a/options.c b/options.c index 1857d411..d7ce94bb 100644 --- a/options.c +++ b/options.c @@ -744,8 +744,13 @@ static int str_random_distribution_cb(void *data, const char *str) return 1; } td->o.pareto_h.u.f = val; - } else - td->o.gauss_dev = val; + } else { + if (val <= 0.00 || val >= 100.0) { + log_err("fio: normal deviation out of range (0 < input < 100.0)\n"); + return 1; + } + td->o.gauss_dev.u.f = val; + } return 0; } @@ -1411,6 +1416,10 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { .oval = TD_DDIR_RANDRW, .help = "Random read and write mix" }, + { .ival = "writetrim", + .oval = TD_DDIR_WRITETRIM, + .help = "Write and trim mix, trims preceding writes" + }, }, }, {