If verify is enabled, automatically enable refill_buffers
[fio.git] / init.c
diff --git a/init.c b/init.c
index 63aaa76fb0cdd581a9fab0c8c4fa5bacc392a8e4..2a3fcee73ddb7eeb9839650ba3ee28286f6ca581 100644 (file)
--- a/init.c
+++ b/init.c
@@ -314,6 +314,9 @@ static int fixup_options(struct thread_data *td)
                log_info("fio: mixed read/write workload with verify. May not "
                 "work as expected, unless you pre-populated the file\n");
 
+       if (td->o.verify != VERIFY_NONE)
+               td->o.refill_buffers = 1;
+
        return 0;
 }