projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Fix fileoffset option
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 76e71b9ee4ef1e6cf3c2c23ebc8d036c8d98b04e..8cdabe6f2551dd5217d1927f46a0836b8ac8a053 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-279,7
+279,7
@@
int td_io_open_file(struct thread_data *td, struct fio_file *f)
f->last_free_lookup = 0;
f->last_completed_pos = 0;
- f->last_pos =
0
;
+ f->last_pos =
f->file_offset
;
f->flags |= FIO_FILE_OPEN;
f->flags &= ~FIO_FILE_CLOSING;