zipl/src: Fix dump job on tape devices

Fix incorrect handling of tape devices leading to inability of
creating dumps on them.
Make the check for tape device go first, to not miss it on irrelevant
errors

Reported-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Eduard Shishkin
2026-02-04 15:26:30 +01:00
committed by Jan Höppner
parent 47cac92ca2
commit 5c2e6fd730
3 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -59,6 +59,7 @@ typedef enum {
struct disk_ext_type {
disk_type_t type;
bool is_nvme;
bool is_tape;
};
/* targetbase definition */
@@ -106,9 +107,8 @@ struct job_target_data;
int device_get_info(const char *device, struct job_target_data *target,
struct device_info **info);
int disk_get_ext_type(const char *device, struct disk_ext_type *ext_type,
int disk_id);
int disk_is_tape(const char *device);
int dump_disk_get_ext_type(const char *device, struct disk_ext_type *ext_type);
int disk_type_is_tape(struct disk_ext_type *ext_type);
int disk_type_is_scsi(struct disk_ext_type *ext_type);
int disk_type_is_eckd_ldl(struct disk_ext_type *ext_type);
int disk_type_is_nvme(struct disk_ext_type *ext_type);