path: root/file.h
diff options
authorTomohiro Kusumi <>2017-08-30 00:12:14 +0300
committerJens Axboe <>2017-08-29 15:14:52 -0600
commit47534cda051d15767f175967b91ef56771adb0e0 (patch)
tree3033761bd2a163df11fe718c190d0a71fc792c85 /file.h
parent2c0795e8803650b7e4b989917b721d03286fa92b (diff)
filesetup: add non O_DIRECT direct I/O support for initial layout setup
8c43ba62('filesetup: align layout buffer') and 6e344dc3('filesetup: keep OS_O_DIRECT flag when pre-allocating file') only consider OS with open(O_DIRECT). This commit adds fio_set_directio() since now OS specific direct I/O initialization is needed by both real ->fd and temporary ->fd while in extend_file() to equally support the feature. Signed-off-by: Tomohiro Kusumi <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'file.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/file.h b/file.h
index 84daa5f..ad8802d 100644
--- a/file.h
+++ b/file.h
@@ -211,5 +211,6 @@ extern void filesetup_mem_free(void);
extern void fio_file_reset(struct thread_data *, struct fio_file *);
extern bool fio_files_done(struct thread_data *);
extern bool exists_and_not_regfile(const char *);
+extern int fio_set_directio(struct thread_data *, struct fio_file *);