Make experimental_verify=1 handle all cases properly
- Don't track written bytes, just replay the workload by resetting
all the random generators. This should work for any mixture of IO.
- Handle trims for verify.
- Ensure that rwmix is replayed properly for verify.
- Fixup logging for replay.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/libfio.c b/libfio.c
index 8255072..ac629dc 100644
--- a/libfio.c
+++ b/libfio.c
@@ -67,6 +67,7 @@
static void reset_io_counters(struct thread_data *td)
{
int ddir;
+
for (ddir = 0; ddir < DDIR_RWDIR_CNT; ddir++) {
td->stat_io_bytes[ddir] = 0;
td->this_io_bytes[ddir] = 0;
@@ -74,10 +75,12 @@
td->this_io_blocks[ddir] = 0;
td->rate_bytes[ddir] = 0;
td->rate_blocks[ddir] = 0;
+ td->io_issues[ddir] = 0;
}
td->zone_bytes = 0;
td->last_was_sync = 0;
+ td->rwmix_issues = 0;
/*
* reset file done count if we are to start over