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;
}
}
ipo = malloc(sizeof(*ipo));
+ memset(ipo, 0, sizeof(*ipo));
INIT_LIST_HEAD(&ipo->list);
ipo->offset = offset;
ipo->len = bytes;
{
FILE *f;
+ if (td->o.nr_files > 1) {
+ log_err("fio: write_iolog only works with 1 file currently\n");
+ return 1;
+ }
+
f = fopen(td->o.write_iolog_file, "w+");
if (!f) {
perror("fopen write iolog");