diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2010-03-18 20:43:00 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-03-18 20:43:00 +0100 |
commit | d990588ef84dacb107971143c239565e149d6f73 (patch) | |
tree | 7a061e5e8c449ebc70218714436680a4b1f450e4 /init.c | |
parent | f3e11d0575df5b93cd09f8658964e1fb5d38a774 (diff) | |
download | fio-d990588ef84dacb107971143c239565e149d6f73.tar.gz |
Set verify_interval to minimum blocksize if not given
Otherwise workloads with bsrange settings will not work properly.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |