[PATCH 04/11] verify: omit verify type mismatch error message for pattern verify
Vincent Fu <[email protected]>
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <[email protected]> |
When we are carrying out pattern verification without a header we should not print out an error message about a verify type mismatch because there is no header on the media specifying the verify type. Signed-off-by: Vincent Fu <[email protected]> --- verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify.c b/verify.c index c90c008c..cffe5999 100644 --- a/verify.c +++ b/verify.c @@ -1031,7 +1031,7 @@ int verify_io_u(struct thread_data *td, struct io_u **io_u_ptr) ret = EINVAL; } - if (ret && verify_type != hdr->verify_type) + if (ret && verify_type != hdr->verify_type && verify_type != VERIFY_PATTERN_NO_HDR) log_err("fio: verify type mismatch (%u media, %u given)\n", hdr->verify_type, verify_type); } -- 2.47.2