Fix ETA display for iolog replay
Valerie Henson reported (and supplied a patch) to fix the issue with
ETA display not being anywhere near correct when replaying an iolog.
Fix this by ensuring that td->total_io_size is always set correctly.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c
index 8630abd..ff1385c 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -454,7 +454,12 @@
if (!td->o.zone_size)
td->o.zone_size = td->o.size;
- td->total_io_size = td->o.size * td->o.loops;
+ /*
+ * iolog already set the total io size, if we read back
+ * stored entries.
+ */
+ if (!td->o.read_iolog_file)
+ td->total_io_size = td->o.size * td->o.loops;
return 0;
err_offset:
log_err("%s: you need to specify valid offset=\n", td->o.name);