summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2010-03-18 20:43:00 +0100
committerJens Axboe <jens.axboe@oracle.com>2010-03-18 20:43:00 +0100
commitd990588ef84dacb107971143c239565e149d6f73 (patch)
tree7a061e5e8c449ebc70218714436680a4b1f450e4 /init.c
parentf3e11d0575df5b93cd09f8658964e1fb5d38a774 (diff)
downloadfio-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.c6
1 files changed, 5 insertions, 1 deletions
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;