Fix broken 'norandommap'
[fio.git] / filesetup.c
index 4fe37ae7fdd70a31b4cd5cf268d2c271a6dae695..9fb325bd18b392f1c1419a01a6518b34da6d90fb 100644 (file)
@@ -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"