path: root/file.h
diff options
authorJens Axboe <>2014-02-26 13:42:13 -0800
committerJens Axboe <>2014-02-26 13:42:13 -0800
commit5903e7b7907854014478b6febfc5645a203ff59e (patch)
tree55c4c9849d96f785279b911f12f654a40984dd36 /file.h
parentbcd27f7ae1ccebd2ac1778752bf8f13fa99600e9 (diff)
blktrace: load improvements
- Set the state explicitly to SETTING_UP when loading the traces. This could take a while, so tell the status thread that we are setting up so it knows how to display us correctly. - Fix a bug with multiple devices where we didn't cache the major/minor properly. This made blktrace spend tons of CPU cycles looking up /sys. - Handle multiple devices correctly when adding files. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'file.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/file.h b/file.h
index d065a250..c929d1da 100644
--- a/file.h
+++ b/file.h
@@ -167,7 +167,7 @@ extern int __must_check generic_close_file(struct thread_data *, struct fio_file
extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *);
extern int __must_check file_lookup_open(struct fio_file *f, int flags);
extern int __must_check pre_read_files(struct thread_data *);
-extern int add_file(struct thread_data *, const char *, int);
+extern int add_file(struct thread_data *, const char *, int, int);
extern int add_file_exclusive(struct thread_data *, const char *);
extern void get_file(struct fio_file *);
extern int __must_check put_file(struct thread_data *, struct fio_file *);