projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
996ac91
)
verify: Fix the bad pattern block offset value
author
Igor Pylypiv
<ipylypiv@google.com>
Thu, 28 Sep 2023 23:37:14 +0000
(16:37 -0700)
committer
Igor Pylypiv
<ipylypiv@google.com>
Thu, 28 Sep 2023 23:42:38 +0000
(16:42 -0700)
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 <ipylypiv@google.com>
verify.c
patch
|
blob
|
blame
|
history
diff --git
a/verify.c
b/verify.c
index f7355f3025681f723b949a5da404c8023f775456..78f333e67e3c0cfa87ff0d19c7f98ab54c18ccab 100644
(file)
--- 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;