zdump: Add zgetdump -d support for ECKD ldipl-dump

Make 'zgetdump -d' to identify ldipl-dump tool (ngdump) installed on DASD
volume just like it does for NVMe ngdump.

Output sample:
-------------
Dump device info:
  Dump tool.........: Next Generation (NGDump) dump tool
  Version...........: 1
  Architecture......: s390x (64 bit)

Partition info:
  Partition number..: 2

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Mikhail Zaslonko
2023-12-07 11:22:45 +01:00
committed by Steffen Eiden
parent a2f8b19c2a
commit f3bcd94524
5 changed files with 267 additions and 53 deletions
+1 -5
View File
@@ -21,10 +21,6 @@ struct ngdump_meta {
};
int ngdump_read_meta_from_device(const char *device, struct ngdump_meta *meta);
int ngdump_get_dump_part(struct zg_fh *zg_fh);
int ngdump_get_disk_part_path(const char *disk_path, int part_num,
char **part_path);
int ngdump_get_dump_part(struct zg_fh *zg_fh, char **part_path);
#endif /* ZGETDUMP_NGDUMP_H */