Files
s390-tools/zdump
Mikhail Zaslonko 279070fa43 zdump/ngdump: Fix seek error on 'zgetdump -d'
When checking CDL formatted DASD for installed dump-tool (zgetdump -d),
we might stumble upon an 'empty' boot record pointer in the volume label
filled with bytes of 0x40 (EBCDIC spaces). This leads to the following
seek error reported:

  # zgetdump -d /dev/dasdb
  zgetdump: Could not seek "/dev/dasdb" (Invalid argument)

Check for empty boot record and return proper error code by
ngdump_get_eckd_part_num() in order to end up with a regular
"No dump tool found" message.

Fixes: f3bcd94524 ("zdump: Add zgetdump -d support for ECKD ldipl-dump")
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>
2024-10-01 12:16:19 +02:00
..
2019-12-12 18:04:32 +01:00
2022-10-22 20:27:16 +02:00
2022-10-22 20:27:16 +02:00
2019-12-12 18:04:32 +01:00
2022-06-20 13:14:05 +02:00
2022-06-20 13:14:05 +02:00
2021-12-09 16:19:25 +01:00
2024-05-27 16:54:10 +02:00
2022-11-29 17:03:57 +01:00
2023-09-27 18:29:07 +02:00
2021-11-10 15:12:10 +01:00