The existing header seed is overwritten if zone reset frequency is set or
if verify backlog is enabled. Disable verify header seed check for these
scenarios, unless there is an explicit request to enable it.
Note: There is no fio behavior change intended by this patch.
Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
if (!fio_option_is_set(o, verify_write_sequence))
o->verify_write_sequence = 0;
}
+
+ /*
+ * Disable rand_seed check when we have verify_backlog, or
+ * zone reset frequency for zonemode=zbd.
+ * Unless we were explicitly asked to enable it.
+ */
+ if (!td_rw(td) || (td->flags & TD_F_VER_BACKLOG) ||
+ o->zrf.u.f) {
+ if (!fio_option_is_set(o, verify_header_seed))
+ o->verify_header_seed = 0;
+ }
}
if (td->o.oatomic) {
memswp(p, p + td->o.verify_offset, header_size);
hdr = p;
- /*
- * Make rand_seed check pass when have verify_backlog or
- * zone reset frequency for zonemode=zbd.
- */
- if (!td_rw(td) || (td->flags & TD_F_VER_BACKLOG) ||
- td->o.zrf.u.f)
- io_u->rand_seed = hdr->rand_seed;
-
if (td->o.verify != VERIFY_PATTERN_NO_HDR) {
ret = verify_header(io_u, td, hdr, hdr_num, hdr_inc);
if (ret)