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:
Michal Privoznik 2022-01-26 13:47:33 +01:00
parent ec9e2adb96
commit f103976ff3

View File

@ -903,6 +903,11 @@ udevKludgeStorageType(virNodeDeviceDef *def)
* ID_TYPE=disk does not exist on DASDs they fall through
* the udevProcessStorage detection logic. */
{ "/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 "