summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorDan Ehrenberg <dehrenberg@google.com>2012-08-16 08:58:21 +0200
committerJens Axboe <axboe@kernel.dk>2012-08-16 08:58:21 +0200
commitce95d651568bd5494e4c4ddc95832715c6760d56 (patch)
treeea9aa794ef791628de697802ff3d4ff0f6a9a490 /file.h
parent83ae8ca2f53fe80314de9e718c8348047418af70 (diff)
Fixing wraparound behavior for time-based sequential read jobs
Previously, a buggy patch made sequential jobs wrap around when they reached an offset of 'size'. However, the appropriate wraparound is at size + initial offset. This patch restores the previous behavior. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'file.h')
-rw-r--r--file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.h b/file.h
index 51df839..68f9a6e 100644
--- a/file.h
+++ b/file.h
@@ -147,6 +147,7 @@ FILE_FLAG_FNS(partial_mmap);
struct thread_data;
extern void close_files(struct thread_data *);
extern void close_and_free_files(struct thread_data *);
+extern unsigned long long get_start_offset(struct thread_data *);
extern int __must_check setup_files(struct thread_data *);
extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *);
extern int __must_check generic_open_file(struct thread_data *, struct fio_file *);