mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
node_device: Treat NVMe disks as regular disks
Unfortunately, udev doesn't set ID_TYPE attribute for NVMe disks, therefore we have to add another case into udevKludgeStorageType() to treat /dev/nvme* devlinks as any other disk. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2045953 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
ec9e2adb96
commit
f103976ff3
@ -903,6 +903,11 @@ udevKludgeStorageType(virNodeDeviceDef *def)
|
|||||||
* ID_TYPE=disk does not exist on DASDs they fall through
|
* ID_TYPE=disk does not exist on DASDs they fall through
|
||||||
* the udevProcessStorage detection logic. */
|
* the udevProcessStorage detection logic. */
|
||||||
{ "/dev/dasd", "dasd" },
|
{ "/dev/dasd", "dasd" },
|
||||||
|
|
||||||
|
/* NVMe disk. While strictly speaking /dev/nvme is a
|
||||||
|
* controller not a disk, this function is called if and
|
||||||
|
* only if @def is of VIR_NODE_DEV_CAP_STORAGE type. */
|
||||||
|
{ "/dev/nvme", "disk" },
|
||||||
};
|
};
|
||||||
|
|
||||||
VIR_DEBUG("Could not find definitive storage type for device "
|
VIR_DEBUG("Could not find definitive storage type for device "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user