From: Vincent Fu Date: Thu, 8 May 2025 18:58:12 +0000 (-0400) Subject: verify: omit verify type mismatch error message for pattern verify X-Git-Tag: fio-3.40~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=76a8799bc5e39bed30fc44727e133689bd540965;p=fio.git verify: omit verify type mismatch error message for pattern verify 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. Link: https://lore.kernel.org/r/20250508185832.3702-5-vincent.fu@samsung.com Signed-off-by: Vincent Fu --- 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); }