filesetup: honor the offset option
[fio.git] / filesetup.c
index 7904d187e5f3ce394ce8707fee05d02562a02530..b8d1d83899cea588a40af2ed126adf150f26fa4c 100644 (file)
@@ -1047,7 +1047,7 @@ int setup_files(struct thread_data *td)
                         * doesn't divide nicely with the min blocksize,
                         * make the first files bigger.
                         */
-                       f->io_size = fs;
+                       f->io_size = fs - f->file_offset;
                        if (nr_fs_extra) {
                                nr_fs_extra--;
                                f->io_size += bs;