Files
s390-tools/zdump
Mikhail Zaslonko c7fd515790 zdump: Fix 'zgetdump -i' ioctl error on s390 formatted dump file
When dump is copied to the filesystem in s390 format, follow on
'zgetdump -i' can fail with ioctl error:

  # zgetdump /dev/dasdb1 -f s390 dump.s390
  Format Info:
      Source: s390_ext
      Target: s390

  Copying dump:
      00000001 / 00008192 MB
      00003688 / 00008192 MB
      00006646 / 00008192 MB
      00008192 / 00008192 MB
  Success: Dump has been copied

  # zgetdump -iVVVV dump.s390

  zgetdump: Operation "BLKSSZGET" failed on "dump.s390" (Inappropriate ioctl for device)

Call ioctl(BLKSSZGET) only for s390_ext dump format (dump can be
stored on DASD partition only, not on the filesystem). For s390 format
a blocksize is not required for dump processing since s390 dump data is
not compressed.

Fixes: 271b809495 ("zdump/dfi_s390: Support reading compressed s390_ext dumps")
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
2024-06-24 16:23:24 +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
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