From d990588ef84dacb107971143c239565e149d6f73 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 18 Mar 2010 20:43:00 +0100 Subject: [PATCH] Set verify_interval to minimum blocksize if not given Otherwise workloads with bsrange settings will not work properly. Signed-off-by: Jens Axboe --- init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.c b/init.c index 5d185fe7..e7245ade 100644 --- a/init.c +++ b/init.c @@ -358,8 +358,12 @@ 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) + if (td->o.verify != VERIFY_NONE) { td->o.refill_buffers = 1; + if (o->max_bs[DDIR_WRITE] != o->min_bs[DDIR_WRITE] && + !o->verify_interval) + o->verify_interval = o->min_bs[DDIR_WRITE]; + } if (td->o.pre_read) { td->o.invalidate_cache = 0; -- 2.25.1