Better management of open files
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index f8f9a5e458cbe528cd8ef153e50d76da8c0e6193..efc9e5195982009462cf8ee82b8f0cbdc3c0d779 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -297,6 +297,7 @@ struct thread_data {
        enum fio_filetype filetype;
        struct fio_file *files;
        unsigned int nr_files;
+       unsigned int nr_open_files;
        unsigned int nr_uniq_files;
        union {
                unsigned int next_file;
@@ -619,6 +620,8 @@ extern int __must_check init_random_state(struct thread_data *);
 extern void close_files(struct thread_data *);
 extern int __must_check setup_files(struct thread_data *);
 extern int __must_check open_files(struct thread_data *);
+extern int open_file(struct thread_data *, struct fio_file *, int, int);
+extern void close_file(struct thread_data *, struct fio_file *);
 extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *);
 
 /*