From 242c63dbbf104d2b0dd03fb2966ebd8ff9a6e2a3 Mon Sep 17 00:00:00 2001 From: Igor Pylypiv Date: Thu, 28 Sep 2023 16:37:14 -0700 Subject: [PATCH] verify: Fix the bad pattern block offset value We offset buf by header_size for pattern verification. Add header_size to the mismatched buf offset to get the correct block offset value. Signed-off-by: Igor Pylypiv --- verify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/verify.c b/verify.c index f7355f3025..78f333e67e 100644 --- a/verify.c +++ b/verify.c @@ -398,7 +398,8 @@ static int verify_io_u_pattern(struct verify_header *hdr, struct vcont *vc) (unsigned char)buf[i], (unsigned char)pattern[mod], bits); - log_err("fio: bad pattern block offset %u\n", i); + log_err("fio: bad pattern block offset %u\n", + i + header_size); vc->name = "pattern"; log_verify_failure(hdr, vc); return EILSEQ;