X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=init.c;h=70217418ce5f75df75bc88a0cec2d7223a5d7183;hb=5881fda43ce41756029a830cc83dbf4480cb6ea2;hp=a682423e9801be03a120b6d038f0b8fd6c762c1c;hpb=4e98a45014737dc4f35d0ca599e4d1ccb4ef3c9b;p=fio.git 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; }