mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl: Support nvme devices
nvme devices use the same on-disk bootmap as scsi devices. When the target device is nvme (using the blkext driver) we simply treat it as scsi. Signed-off-by: Jason J. Herne <jjherne@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
0c583ec1a6
commit
1b65b23b43
@@ -405,6 +405,12 @@ disk_get_info(const char* device, struct job_target_data* target,
|
||||
"determined.");
|
||||
goto out_close;
|
||||
}
|
||||
/* NVMe path, driver name is 'blkext' */
|
||||
} else if (strcmp(data->drv_name, "blkext") == 0) {
|
||||
data->devno = -1;
|
||||
data->type = disk_type_scsi;
|
||||
data->partnum = stats.st_rdev & SCSI_PARTN_MASK;
|
||||
data->device = stats.st_rdev & ~SCSI_PARTN_MASK;
|
||||
} else {
|
||||
/* Driver name is unknown */
|
||||
error_reason("Unsupported device driver '%s'", data->drv_name);
|
||||
|
||||
Reference in New Issue
Block a user