From d92f4198362755185ea35ef6b2cf275e3c095cb2 Mon Sep 17 00:00:00 2001 From: Mikhail Zaslonko Date: Thu, 5 Feb 2026 15:36:58 +0100 Subject: [PATCH] zdump/dfi: Fix dump header check for dfi_s390tape MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The magic number used in the dump header for all stage2 dumps (including tape dump) is DF_S390_MAGIC_EXT since commit ff475d9c7d0a ("zipl: Extend DASD stand-alone dumpers to drop zero pages"). Adjust dfi_s390tape code accordingly. Signed-off-by: Mikhail Zaslonko Reviewed-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- zdump/dfi_s390tape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zdump/dfi_s390tape.c b/zdump/dfi_s390tape.c index daf74e6c..b359701e 100644 --- a/zdump/dfi_s390tape.c +++ b/zdump/dfi_s390tape.c @@ -86,7 +86,7 @@ static int em_verify(struct df_s390_em *em) */ static void hdr_verify(struct df_s390_hdr *hdr) { - if (hdr->magic != DF_S390_MAGIC) + if (hdr->magic != DF_S390_MAGIC && hdr->magic != DF_S390_MAGIC_EXT) ERR_EXIT("No valid dump found on tape"); if (hdr->volnr != 0) { STDERR_PR("Found volume number: %d\n", hdr->volnr);