projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix read_iolog
[fio.git]
/
log.c
diff --git
a/log.c
b/log.c
index 45be5fb6fdb94f718d3603bd769226f50abf7802..de3b759ce8ca268a007793c1b3ac9352e1bd8f3e 100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-19,6
+19,11
@@
int read_iolog_get(struct thread_data *td, struct io_u *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;
}