From: Jens Axboe Date: Thu, 29 Nov 2012 20:37:11 +0000 (+0100) Subject: Fix broken 'norandommap' X-Git-Tag: fio-2.0.12~38^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=1cad7121e8e6c59440ae43545be05fa302e4110d Fix broken 'norandommap' commit 8055e41d broke the option, always falling through to the failure case. Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index 4fe37ae7..9fb325bd 100644 --- a/filesetup.c +++ b/filesetup.c @@ -924,7 +924,8 @@ int init_random_map(struct thread_data *td) f->io_axmap = axmap_new(blocks); if (f->io_axmap) continue; - } + } else if (td->o.norandommap) + continue; if (!td->o.softrandommap) { log_err("fio: failed allocating random map. If running"