* [PATCH] ultipath-tools: standardize NVME vendor_id in hwtable
@ 2025-08-19 16:54 Xose Vazquez Perez
0 siblings, 0 replies; only message in thread
From: Xose Vazquez Perez @ 2025-08-19 16:54 UTC (permalink / raw)
Cc: Xose Vazquez Perez, Martin Wilck, Benjamin Marzinski,
Christophe Varoqui, DM_DEVEL-ML
There is no vendor_id/product_id for NVMe devices.
Just "model". and typically it's a combination of both.
"NVME" is a static tag, added in:
https://github.com/opensvc/multipath-tools/blob/de16cf82c5263fc148118be56ebf44c8f0ee60b8/libmultipath/discovery.c#L1635
Cc: Martin Wilck <mwilck@suse.com>
Cc: Benjamin Marzinski <bmarzins@redhat.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: DM_DEVEL-ML <dm-devel@lists.linux.dev>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
libmultipath/hwtable.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index aedf4b88..de0af8a4 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -88,7 +88,7 @@ static struct hwentry default_hw[] = {
*/
{
/* Generic NVMe */
- .vendor = "NVM[eE]",
+ .vendor = "^NVME",
.product = ".*",
.uid_attribute = DEFAULT_NVME_UID_ATTRIBUTE,
.checker_name = NONE,
@@ -396,7 +396,7 @@ static struct hwentry default_hw[] = {
},
{
/* PowerStore NVMe */
- .vendor = ".*",
+ .vendor = "NVME",
.product = "dellemc-powerstore",
.no_path_retry = 3,
},
@@ -738,7 +738,7 @@ static struct hwentry default_hw[] = {
},
{
/* FlashSystem(RamSan) NVMe */
- .vendor = "NVMe",
+ .vendor = "NVME",
.product = "FlashSystem",
.no_path_retry = NO_PATH_RETRY_FAIL,
},
@@ -1112,7 +1112,7 @@ static struct hwentry default_hw[] = {
},
{
/* OceanStor NVMe */
- .vendor = "NVM[eE]",
+ .vendor = "NVME",
.product = "Huawei-XSG1",
.checker_name = DIRECTIO,
.no_path_retry = 12,
--
2.50.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-19 16:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-19 16:54 [PATCH] ultipath-tools: standardize NVME vendor_id in hwtable Xose Vazquez Perez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).