projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow reset of offset_increment counter
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index b4a0cbb91f9c3ce3c01b1db9b5f3b8fa33f5e22f..62c7dc2472c9f67625a6b3a97d37d8847a185931 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-380,6
+380,7
@@
static struct thread_data *get_new_job(int global, struct thread_data *parent,
profile_add_hooks(td);
td->thread_number = thread_number;
profile_add_hooks(td);
td->thread_number = thread_number;
+ td->subjob_number = 0;
if (jobname)
td->o.name = strdup(jobname);
if (jobname)
td->o.name = strdup(jobname);
@@
-1288,6
+1289,7
@@
static int add_job(struct thread_data *td, const char *jobname, int job_add_num,
td_new->o.numjobs = 1;
td_new->o.stonewall = 0;
td_new->o.new_group = 0;
td_new->o.numjobs = 1;
td_new->o.stonewall = 0;
td_new->o.new_group = 0;
+ td_new->subjob_number = numjobs;
if (file_alloced) {
if (td_new->files) {
if (file_alloced) {
if (td_new->files) {