Untangle the file creation mess
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index de5c976e85cb0d636eadd21768fefaf601a66c95..a416856459c12ccf59cef5792efd126701bd7c0c 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -773,6 +773,9 @@ static void *thread_main(void *data)
        if (open_files(td))
                goto err;
 
+       if (init_random_map(td))
+               goto err;
+
        if (td->o.exec_prerun) {
                if (system(td->o.exec_prerun) < 0)
                        goto err;