Change the behavior for verify_only mode to not disable
verify_write_sequence unless its explicitly enabled.
Update the fio doc. accordingly.
Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
invocation of this workload. This option allows one to check data multiple
times at a later date without overwriting it. This option makes sense only
for workloads that write data, and does not support workloads with the
- :option:`time_based` option set.
+ :option:`time_based` option set. :option:`verify_write_sequence` will be
+ disabled in this mode, unless its explicitly enabled.
.. option:: do_verify=bool
invocation of this workload. This option allows one to check data multiple
times at a later date without overwriting it. This option makes sense only
for workloads that write data, and does not support workloads with the
-\fBtime_based\fR option set.
+\fBtime_based\fR option set. \fBverify_write_sequence\fR option will be
+disabled in this mode, unless its explicitly enabled.
.TP
.BI do_verify \fR=\fPbool
Run the verify phase after a write phase. Only valid if \fBverify\fR is
o->verify_interval = gcd(o->min_bs[DDIR_WRITE],
o->max_bs[DDIR_WRITE]);
- if (td->o.verify_only)
- o->verify_write_sequence = 0;
+ if (o->verify_only) {
+ if (!fio_option_is_set(o, verify_write_sequence))
+ o->verify_write_sequence = 0;
+ }
}
if (td->o.oatomic) {