Init stat for all files, not just current range
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 5bf8c43d3f9b0736422cf9fa3bb9973eaeafd81a..465053ac675372e8c9a854af4cb7edba974b1b73 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -238,7 +238,7 @@ struct fio_file {
                unsigned long file_data;
                int fd;
        };
-       const char *file_name;
+       char *file_name;
        void *mmap;
        unsigned long long file_size;
        unsigned long long real_file_size;
@@ -323,9 +323,10 @@ struct thread_data {
        int groupid;
        struct thread_stat ts;
        struct fio_file *files;
+       unsigned int files_index;
        unsigned int nr_files;
        unsigned int nr_open_files;
-       unsigned int nr_uniq_files;
+       unsigned int nr_normal_files;
        union {
                unsigned int next_file;
                os_random_state_t next_file_state;
@@ -775,6 +776,8 @@ extern void close_ioengine(struct thread_data *);
        for ((i) = 0, (td) = &threads[0]; (i) < (int) thread_number; (i)++, (td)++)
 #define for_each_file(td, f, i)        \
        for ((i) = 0, (f) = &(td)->files[0]; (i) < (td)->open_files; (i)++, (f)++)
+#define for_all_files(td, f, i)        \
+       for ((i) = 0, (f) = &(td)->files[0]; (i) < (td)->files_index; (i)++, (f)++)
 
 #define fio_assert(td, cond)   do {    \
        if (!(cond)) {                  \