|
|
1b87cf |
From c04c7a986bd3514730e4169bf1a70bbec1fda006 Mon Sep 17 00:00:00 2001
|
|
|
1b87cf |
Message-Id: <c04c7a986bd3514730e4169bf1a70bbec1fda006@dist-git>
|
|
|
1b87cf |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
1b87cf |
Date: Wed, 26 Jan 2022 13:47:33 +0100
|
|
|
1b87cf |
Subject: [PATCH] node_device: Treat NVMe disks as regular disks
|
|
|
1b87cf |
|
|
|
1b87cf |
Unfortunately, udev doesn't set ID_TYPE attribute for NVMe disks,
|
|
|
1b87cf |
therefore we have to add another case into udevKludgeStorageType()
|
|
|
1b87cf |
to treat /dev/nvme* devlinks as any other disk.
|
|
|
1b87cf |
|
|
|
1b87cf |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2045953
|
|
|
1b87cf |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
1b87cf |
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
1b87cf |
(cherry picked from commit f103976ff34a52298df1810d82ececa3e7da4291)
|
|
|
1b87cf |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2056673
|
|
|
1b87cf |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
1b87cf |
---
|
|
|
1b87cf |
src/node_device/node_device_udev.c | 5 +++++
|
|
|
1b87cf |
1 file changed, 5 insertions(+)
|
|
|
1b87cf |
|
|
|
1b87cf |
diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
|
|
|
1b87cf |
index dd18401e78..a9e8bf10da 100644
|
|
|
1b87cf |
--- a/src/node_device/node_device_udev.c
|
|
|
1b87cf |
+++ b/src/node_device/node_device_udev.c
|
|
|
1b87cf |
@@ -903,6 +903,11 @@ udevKludgeStorageType(virNodeDeviceDef *def)
|
|
|
1b87cf |
* ID_TYPE=disk does not exist on DASDs they fall through
|
|
|
1b87cf |
* the udevProcessStorage detection logic. */
|
|
|
1b87cf |
{ "/dev/dasd", "dasd" },
|
|
|
1b87cf |
+
|
|
|
1b87cf |
+ /* NVMe disk. While strictly speaking /dev/nvme is a
|
|
|
1b87cf |
+ * controller not a disk, this function is called if and
|
|
|
1b87cf |
+ * only if @def is of VIR_NODE_DEV_CAP_STORAGE type. */
|
|
|
1b87cf |
+ { "/dev/nvme", "disk" },
|
|
|
1b87cf |
};
|
|
|
1b87cf |
|
|
|
1b87cf |
VIR_DEBUG("Could not find definitive storage type for device "
|
|
|
1b87cf |
--
|
|
|
1b87cf |
2.35.1
|
|
|
1b87cf |
|