mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump/dfi: Fix dump header check for dfi_s390tape
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 <zaslonko@linux.ibm.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
8ff8b40182
commit
d92f419836
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user