Allow reset of offset_increment counter
[fio.git] / filesetup.c
index 39c276a3d2203180772a1e9a88974dc545d360fd..12a43b1fa14459439dd73013dd4ef018e5f6bfba 100644 (file)
@@ -758,7 +758,7 @@ uint64_t get_start_offset(struct thread_data *td, struct fio_file *f)
                return f->real_file_size;
 
        return td->o.start_offset +
                return f->real_file_size;
 
        return td->o.start_offset +
-               (td->thread_number - 1) * td->o.offset_increment;
+               td->subjob_number * td->o.offset_increment;
 }
 
 /*
 }
 
 /*