From 76a8799bc5e39bed30fc44727e133689bd540965 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Thu, 8 May 2025 14:58:12 -0400 Subject: [PATCH] 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 --- 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.25.1