From 5881fda43ce41756029a830cc83dbf4480cb6ea2 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 15 Nov 2012 15:21:23 -0700 Subject: [PATCH 1/1] 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 --- init.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.25.1