Fix offset_increment option and add man page entry for it
[fio.git] / filesetup.c
index 9acce64a45fc91eecbce536b89c7dc015dc3a713..f3d38290179e80d9eacefb5f2a97ef4abd479720 100644 (file)
@@ -714,7 +714,7 @@ int setup_files(struct thread_data *td)
        need_extend = 0;
        for_each_file(td, f, i) {
                f->file_offset = td->o.start_offset +
-                       td->thread_number * td->o.offset_increment;
+                       (td->thread_number - 1) * td->o.offset_increment;
 
                if (!td->o.file_size_low) {
                        /*