1d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe#ifndef FIO_FILE_H 2d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe#define FIO_FILE_H 3d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 4e2e58886427019b525d2a234c5404a38ec0c7ebfJens Axboe#include <string.h> 5ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6feBruce Cran#include "compiler/compiler.h" 6d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe#include "io_ddir.h" 7ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6feBruce Cran#include "flist.h" 89c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43Jens Axboe#include "lib/zipf.h" 97ebd796f4e50c21d652e62bf1e112755b0f338a8Jens Axboe#include "lib/axmap.h" 108055e41d0ecc54770a2653427532b3e2c5fabdadJens Axboe#include "lib/lfsr.h" 11eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes#include "lib/gauss.h" 12d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 13d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe/* 14d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe * The type of object we are working on 15d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe */ 16d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboeenum fio_filetype { 17d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_TYPE_FILE = 1, /* plain file */ 18eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_TYPE_BLOCK, /* block device */ 19d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_TYPE_CHAR, /* character device */ 20d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_TYPE_PIPE, /* pipe */ 21d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe}; 22d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 23d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboeenum fio_file_flags { 24d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_FILE_open = 1 << 0, /* file is open */ 25d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_FILE_closing = 1 << 1, /* file being closed */ 26d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_FILE_extend = 1 << 2, /* needs extend */ 27d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_FILE_done = 1 << 3, /* io completed to this file */ 28d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_FILE_size_known = 1 << 4, /* size has been set */ 29d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FIO_FILE_hashed = 1 << 5, /* file is on hash */ 30ed47cbf7063df84343cd79fdc64eb7bbf7d6df2aJens Axboe FIO_FILE_partial_mmap = 1 << 6, /* can't do full mmap */ 31d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens Axboe FIO_FILE_axmap = 1 << 7, /* uses axmap */ 32d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens Axboe FIO_FILE_lfsr = 1 << 8, /* lfsr is used */ 33d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe}; 34d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 35d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboeenum file_lock_mode { 36d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FILE_LOCK_NONE, 37d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FILE_LOCK_EXCLUSIVE, 38d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe FILE_LOCK_READWRITE, 39d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe}; 40d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 41d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe/* 42eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes * How fio chooses what file to service next. Choice of uniformly random, or 43eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes * some skewed random variants, or just sequentially go through them or 44eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes * roundrobing. 45590aebda258e146edd73382121be9c84643d8f1bJens Axboe */ 46590aebda258e146edd73382121be9c84643d8f1bJens Axboeenum { 47eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_FSERVICE_RANDOM = 1, 48eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_FSERVICE_RR = 2, 49eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_FSERVICE_SEQ = 3, 50eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes __FIO_FSERVICE_NONUNIFORM = 0x100, 51eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_FSERVICE_ZIPF = __FIO_FSERVICE_NONUNIFORM | 4, 52eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_FSERVICE_PARETO = __FIO_FSERVICE_NONUNIFORM | 5, 53eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_FSERVICE_GAUSS = __FIO_FSERVICE_NONUNIFORM | 6, 54eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes 55eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes FIO_FSERVICE_SHIFT = 10, 56590aebda258e146edd73382121be9c84643d8f1bJens Axboe}; 57590aebda258e146edd73382121be9c84643d8f1bJens Axboe 58590aebda258e146edd73382121be9c84643d8f1bJens Axboe/* 59a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou * No pre-allocation when laying down files, or call posix_fallocate(), or 60a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou * call fallocate() with FALLOC_FL_KEEP_SIZE set. 61a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou */ 62a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriouenum fio_fallocate_mode { 63a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou FIO_FALLOCATE_NONE = 1, 64a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou FIO_FALLOCATE_POSIX = 2, 65a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou FIO_FALLOCATE_KEEP_SIZE = 3, 66a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou}; 67a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou 68a596f047e2b3d447ccca76bd075f05473a1f8d1cEric Gouriou/* 69d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe * Each thread_data structure has a number of files associated with it, 70d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe * this structure holds state information for a single file. 71d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe */ 72d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboestruct fio_file { 73d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe struct flist_head hash_list; 74d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe enum fio_filetype filetype; 75d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 760e238572c4e63b0675fd9cbbf168d19ad8d60464Jens Axboe int fd; 77e6c4d732fc99070091367d0ce41fe2cf1ddd1dc9Jens Axboe int shadow_fd; 7893bcfd20e37cef8cec350fe06d3a086724c9f257Bruce Cran#ifdef WIN32 7903e20d687566753b90383571e5e152c5142bdffdBruce Cran HANDLE hFile; 8003e20d687566753b90383571e5e152c5142bdffdBruce Cran HANDLE ioCP; 8103e20d687566753b90383571e5e152c5142bdffdBruce Cran#endif 82d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 83d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe /* 84d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe * filename and possible memory mapping 85d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe */ 86d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe unsigned int major, minor; 8789ac1d48971578ccb0645c292d4a058340aeb909Shaohua Li int fileno; 88eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes int bs; 89eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes char *file_name; 90d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 91d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe /* 92d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe * size of the file, offset into file, and io size from that offset 93eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes * (be aware io_size is different from thread_options::io_size) 94d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe */ 95293b8c1f23bbe4c735cd00fbb7cca1121bf18016Jens Axboe uint64_t real_file_size; 96293b8c1f23bbe4c735cd00fbb7cca1121bf18016Jens Axboe uint64_t file_offset; 97293b8c1f23bbe4c735cd00fbb7cca1121bf18016Jens Axboe uint64_t io_size; 98d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 9908a99bed133fdd5dd6ef87c8638b45b135b10a8eJens Axboe /* 10008a99bed133fdd5dd6ef87c8638b45b135b10a8eJens Axboe * Track last end and last start of IO for a given data direction 10108a99bed133fdd5dd6ef87c8638b45b135b10a8eJens Axboe */ 10208a99bed133fdd5dd6ef87c8638b45b135b10a8eJens Axboe uint64_t last_pos[DDIR_RWDIR_CNT]; 10308a99bed133fdd5dd6ef87c8638b45b135b10a8eJens Axboe uint64_t last_start[DDIR_RWDIR_CNT]; 104d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 105293b8c1f23bbe4c735cd00fbb7cca1121bf18016Jens Axboe uint64_t first_write; 106293b8c1f23bbe4c735cd00fbb7cca1121bf18016Jens Axboe uint64_t last_write; 10744f29692cfba246981bb3c1b894333a6d2209f51Jens Axboe 108d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe /* 109eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes * Tracks the last iodepth number of completed writes, if data 110eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes * verification is enabled 111e943b8785fa19ab5536d91242f1063ae809cdf2bJens Axboe */ 112eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes uint64_t *last_write_comp; 113eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes unsigned int last_write_idx; 114eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes 115eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes /* 116eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes * For use by the io engine for offset or private data storage 117eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes */ 118eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes union { 119eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes uint64_t engine_pos; 120eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes void *engine_data; 121eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes }; 122e943b8785fa19ab5536d91242f1063ae809cdf2bJens Axboe 123e943b8785fa19ab5536d91242f1063ae809cdf2bJens Axboe /* 124d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe * if io is protected by a semaphore, this is set 125d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe */ 126d7df1d133b0c3daad4ae4c731e0dae7b0181fd62Jens Axboe union { 127d7df1d133b0c3daad4ae4c731e0dae7b0181fd62Jens Axboe struct fio_mutex *lock; 128d7df1d133b0c3daad4ae4c731e0dae7b0181fd62Jens Axboe struct fio_rwlock *rwlock; 129d7df1d133b0c3daad4ae4c731e0dae7b0181fd62Jens Axboe }; 130d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 131d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe /* 132d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens Axboe * block map or LFSR for random io 133d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe */ 134d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens Axboe union { 135d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens Axboe struct axmap *io_axmap; 136d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens Axboe struct fio_lfsr lfsr; 137d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens Axboe }; 1388055e41d0ecc54770a2653427532b3e2c5fabdadJens Axboe 1399c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43Jens Axboe /* 1409c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43Jens Axboe * Used for zipf random distribution 1419c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43Jens Axboe */ 142eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes union { 143eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes struct zipf_state zipf; 144eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes struct gauss_state gauss; 145eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes }; 1469c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43Jens Axboe 147d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe int references; 148d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe enum fio_file_flags flags; 149d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 150d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe struct disk_util *du; 151d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe}; 152d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 153eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes#define FILE_ENG_DATA(f) ((f)->engine_data) 154eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughes#define FILE_SET_ENG_DATA(f, data) ((f)->engine_data = (data)) 155bcbfeefa7bce8383cf85fe59ced91f54821dfbd2Christian Ehrhardt 156d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe#define FILE_FLAG_FNS(name) \ 157d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboestatic inline void fio_file_set_##name(struct fio_file *f) \ 158d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe{ \ 159bea5c23dfb5166931ff476a483fd66d5e5b10601Daniel Gollub (f)->flags = (enum fio_file_flags) ((f)->flags | FIO_FILE_##name); \ 160d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe} \ 161d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboestatic inline void fio_file_clear_##name(struct fio_file *f) \ 162d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe{ \ 163bea5c23dfb5166931ff476a483fd66d5e5b10601Daniel Gollub (f)->flags = (enum fio_file_flags) ((f)->flags & ~FIO_FILE_##name); \ 164d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe} \ 165d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboestatic inline int fio_file_##name(struct fio_file *f) \ 166d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe{ \ 167d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe return ((f)->flags & FIO_FILE_##name) != 0; \ 168d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe} 169d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 170d6aed795f2e3e403828abf60874dd2d6e8342a1bJens AxboeFILE_FLAG_FNS(open); 171d6aed795f2e3e403828abf60874dd2d6e8342a1bJens AxboeFILE_FLAG_FNS(closing); 172d6aed795f2e3e403828abf60874dd2d6e8342a1bJens AxboeFILE_FLAG_FNS(extend); 173d6aed795f2e3e403828abf60874dd2d6e8342a1bJens AxboeFILE_FLAG_FNS(done); 174d6aed795f2e3e403828abf60874dd2d6e8342a1bJens AxboeFILE_FLAG_FNS(size_known); 175d6aed795f2e3e403828abf60874dd2d6e8342a1bJens AxboeFILE_FLAG_FNS(hashed); 176ed47cbf7063df84343cd79fdc64eb7bbf7d6df2aJens AxboeFILE_FLAG_FNS(partial_mmap); 177d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens AxboeFILE_FLAG_FNS(axmap); 178d55dd0413b5f2df5e637c9c6e752b4272e4a1e5fJens AxboeFILE_FLAG_FNS(lfsr); 179d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe#undef FILE_FLAG_FNS 180d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe 1814cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboe/* 1824cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboe * File setup/shutdown 1834cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboe */ 1844cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboestruct thread_data; 1854cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void close_files(struct thread_data *); 1864cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void close_and_free_files(struct thread_data *); 187bedc9dc24223bb33be4120f4a57718bc54888ca5Jens Axboeextern uint64_t get_start_offset(struct thread_data *, struct fio_file *); 1884cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int __must_check setup_files(struct thread_data *); 1894cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *); 1904cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int __must_check generic_open_file(struct thread_data *, struct fio_file *); 1914cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int __must_check generic_close_file(struct thread_data *, struct fio_file *); 1924cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *); 1931ccc6dc75b28ef70cd7a8c39ac8c1cb68c720a65Dmitry Monakhovextern int __must_check file_lookup_open(struct fio_file *f, int flags); 1944cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int __must_check pre_read_files(struct thread_data *); 195eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughesextern unsigned long long get_rand_file_size(struct thread_data *td); 1965903e7b7907854014478b6febfc5645a203ff59eJens Axboeextern int add_file(struct thread_data *, const char *, int, int); 19749ffb4a2e1ac3026d77d9e1c03edc2753fcec41bJens Axboeextern int add_file_exclusive(struct thread_data *, const char *); 1984cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void get_file(struct fio_file *); 1994cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int __must_check put_file(struct thread_data *, struct fio_file *); 200e8462bd8250cf3ff2d41f17e1a4d4cefc70b6b37Jens Axboeextern void put_file_log(struct thread_data *, struct fio_file *); 2014cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void lock_file(struct thread_data *, struct fio_file *, enum fio_ddir); 2024cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void unlock_file(struct thread_data *, struct fio_file *); 2034cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void unlock_file_all(struct thread_data *, struct fio_file *); 2044cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int add_dir_files(struct thread_data *, const char *); 2054cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int init_random_map(struct thread_data *); 2064cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void dup_files(struct thread_data *, struct thread_data *); 2074cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern int get_fileno(struct thread_data *, const char *); 2084cd02b3f7f4eda0ec263f04422ab6424b7693605Jens Axboeextern void free_release_files(struct thread_data *); 209bcbfeefa7bce8383cf85fe59ced91f54821dfbd2Christian Ehrhardtextern void filesetup_mem_free(void); 210eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughesextern void fio_file_reset(struct thread_data *, struct fio_file *); 211eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughesextern bool fio_files_done(struct thread_data *); 212eda3a60699e1d96bb68875ef2169ca819eb8f4f9Elliott Hughesextern bool exists_and_not_regfile(const char *); 213c592b9fe12d4739d99d5bece517e304804876df6Jens Axboe 214d6aed795f2e3e403828abf60874dd2d6e8342a1bJens Axboe#endif 215