verify: enable header seed check for 100% write jobs
authorAnkit Kumar <ankit.kumar@samsung.com>
Thu, 13 Feb 2025 01:14:37 +0000 (06:44 +0530)
committerVincent Fu <vincentfu@gmail.com>
Thu, 6 Mar 2025 18:58:43 +0000 (13:58 -0500)
There are 3 modes where verify can be performed. write, read and
readwrite. The existing readwrite condition prohibits header seed check
for write or read workloads. For write workloads, there shouldn't be any
extra limitation that triggers header seed mismatch which cannot be
triggered with readwrite workloads. Hence modify this condition to only
disable verify header seed checks for read workload.

The subsequent patches fixes header seed mismatch issues.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
init.c

diff --git a/init.c b/init.c
index 99661ca89bef00cc9a8fe9444f9cd7a1ccaac79a..7a1a6840f044f75c78663d91439def5b0fd7e503 100644 (file)
--- a/init.c
+++ b/init.c
@@ -864,7 +864,7 @@ static int fixup_options(struct thread_data *td)
                 * zone reset frequency for zonemode=zbd.
                 * Unless we were explicitly asked to enable it.
                 */
-               if (!td_rw(td) || (td->flags & TD_F_VER_BACKLOG) ||
+               if (!td_write(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;