projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set verify_interval to minimum blocksize if not given
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 5d185fe7e7dbbe90d82462d76072063d33205f17..e7245ade0313ef92fa659e60250223b729448986 100644
(file)
--- 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");
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;
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;
if (td->o.pre_read) {
td->o.invalidate_cache = 0;