summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/multipath-tools/files/0002-RH-Remove-the-property-blacklist-exception-builtin.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/files/0002-RH-Remove-the-property-blacklist-exception-builtin.patch')
-rw-r--r--meta-oe/recipes-support/multipath-tools/files/0002-RH-Remove-the-property-blacklist-exception-builtin.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0002-RH-Remove-the-property-blacklist-exception-builtin.patch b/meta-oe/recipes-support/multipath-tools/files/0002-RH-Remove-the-property-blacklist-exception-builtin.patch
new file mode 100644
index 000000000..a24c827dc
--- /dev/null
+++ b/meta-oe/recipes-support/multipath-tools/files/0002-RH-Remove-the-property-blacklist-exception-builtin.patch
@@ -0,0 +1,63 @@
1From bb6db01cc19940bb5162c1cc0c9b5f8e4c209822 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Fri, 1 Mar 2024 10:34:06 +0800
4Subject: [PATCH 02/12] RH: Remove the property blacklist exception builtin
5
6Multipath set the default property blacklist exceptions to
7(ID_SCSI_VPD|ID_WWN). This has the effect of blacklisting some internal
8devices. These devices may never have multiple paths, but it is nice
9to be able to set multipath up on them all the same. This patch simply
10removes the default, and makes it so that if no property
11blacklist_exception is given, then devices aren't failed for not matching
12it.
13
14Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
15
16Upsteam-Status: Pending
17
18[OP: Rebase to 0.9.3]
19Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
20
21Rebase to 0.9.8
22Signed-off-by: Changqing Li <changqing.li@windriver.com>
23---
24 libmultipath/blacklist.c | 16 +++++-----------
25 1 file changed, 5 insertions(+), 11 deletions(-)
26
27diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
28index 75100b20..4fdaca76 100644
29--- a/libmultipath/blacklist.c
30+++ b/libmultipath/blacklist.c
31@@ -221,15 +221,6 @@ setup_default_blist (struct config * conf)
32 struct hwentry *hwe;
33 int i;
34
35- if (nvme_multipath_enabled()) {
36- if (store_ble(conf->blist_devnode, "!^(sd[a-z]|dasd[a-z])",
37- ORIGIN_DEFAULT))
38- return 1;
39- } else {
40- if (store_ble(conf->blist_devnode, "!^(sd[a-z]|dasd[a-z]|nvme[0-9])",
41- ORIGIN_DEFAULT))
42- return 1;
43- }
44 if (store_ble(conf->elist_property, "(SCSI_IDENT_|ID_WWN)", ORIGIN_DEFAULT))
45 return 1;
46
47@@ -464,8 +455,11 @@ filter_property(const struct config *conf, struct udev_device *udev,
48 r = MATCH_NOTHING;
49 }
50
51- log_filter(devname, NULL, NULL, NULL, env, NULL, r, lvl);
52- return r;
53+ if (VECTOR_SIZE(conf->elist_property)) {
54+ log_filter(devname, NULL, NULL, NULL, env, NULL, r, lvl);
55+ return r;
56+ }
57+ return 0;
58 }
59
60 static void free_ble(struct blentry *ble)
61--
622.25.1
63