From: Jens Axboe Date: Thu, 18 Mar 2010 19:43:00 +0000 (+0100) Subject: Set verify_interval to minimum blocksize if not given X-Git-Tag: fio-1.38~12 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d990588ef84dacb107971143c239565e149d6f73;hp=f3e11d0575df5b93cd09f8658964e1fb5d38a774;p=fio.git Set verify_interval to minimum blocksize if not given Otherwise workloads with bsrange settings will not work properly. Signed-off-by: Jens Axboe --- 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;