Caveat - it only works with 1 file, unfortunately. Will need a format
change to get that right.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
unsigned int numjobs;
os_cpu_mask_t cpumask;
unsigned int iolog;
- unsigned int read_iolog;
unsigned int rwmixcycle;
unsigned int rwmix[2];
unsigned int nice;
/*
* If using an iolog, grab next piece if any available.
*/
- if (td->o.read_iolog)
+ if (td->o.read_iolog_file)
return read_iolog_get(td, io_u);
/*
io_u->buflen = ipo->len;
io_u->ddir = ipo->ddir;
io_u->file = ipo->file;
+ /*
+ * work around, this needs a format change to work for > 1 file
+ */
+ if (!io_u->file)
+ io_u->file = &td->files[0];
free(ipo);
return 0;
}