From 1cad7121e8e6c59440ae43545be05fa302e4110d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 29 Nov 2012 21:37:11 +0100 Subject: [PATCH] Fix broken 'norandommap' commit 8055e41d broke the option, always falling through to the failure case. Signed-off-by: Jens Axboe --- filesetup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.25.1