Fix "fio: file hash not empty on exit" with blktrace replay
[fio.git] / filesetup.c
index b1f73f7131cb6dfe086bdd45f9cd269e7cf963f2..371b40589355848a0b2b63468cece91dcb7815dc 100644 (file)
@@ -979,6 +979,7 @@ int add_file(struct thread_data *td, const char *fname)
                td->files_size = new_size;
        }
        td->files[cur_files] = f;
+       f->fileno = cur_files;
 
        /*
         * init function, io engine may not be loaded yet