[PATCH] Fix fileoffset option
[fio.git] / ioengines.c
index 76e71b9ee4ef1e6cf3c2c23ebc8d036c8d98b04e..8cdabe6f2551dd5217d1927f46a0836b8ac8a053 100644 (file)
@@ -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;