From: Jens Axboe Date: Thu, 15 Nov 2012 22:21:23 +0000 (-0700) Subject: Disable random map automatically if a non-uniform random distribution is given X-Git-Tag: fio-2.0.11~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5881fda43ce41756029a830cc83dbf4480cb6ea2 Disable random map automatically if a non-uniform random distribution is given Doesn't make sense to use a map, if the user specifically asked for a non-uniform distribution. Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index a682423e..70217418 100644 --- a/init.c +++ b/init.c @@ -596,6 +596,13 @@ static int fixup_options(struct thread_data *td) td->o.compress_percentage = 0; } + /* + * Using a non-uniform random distribution excludes usage of + * a random map + */ + if (td->o.random_distribution != FIO_RAND_DIST_RANDOM) + td->o.norandommap = 1; + return ret; }