1From 0000000000000000000000000000000000000000 Mon Sep 17
200:00:00 2001 From:Benjamin Marzinski <bmarzins@redhat.com> Date: Wed, 2 Jul
32014 12:49:53 -0500 Subject: [PATCH] RH: Remove the property blacklist
4exception 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
18Update patch to 0.8.2
19Signed-off-by: Changqing Li <changqing.li@windriver.com>
20---
21 libmultipath/blacklist.c | 13 +++++--------
22 1 file changed, 5 insertions(+), 8 deletions(-)
23
24diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
25index 00e8dbd..5204501 100644
26--- a/libmultipath/blacklist.c
27+++ b/libmultipath/blacklist.c
28@@ -192,12 +192,6 @@ setup_default_blist (struct config * conf)
29 	char * str;
30 	int i;
31
32-	str = STRDUP("^(ram|zram|raw|loop|fd|md|dm-|sr|scd|st|dcssblk)[0-9]");
33-	if (!str)
34-		return 1;
35-	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
36-		return 1;
37-
38 	str = STRDUP("^(td|hd|vd)[a-z]");
39 	if (!str)
40 		return 1;
41@@ -437,8 +431,11 @@ filter_property(struct config *conf, struct udev_device *udev, int lvl,
42 			r = MATCH_NOTHING;
43 	}
44
45-	log_filter(devname, NULL, NULL, NULL, env, NULL, r, lvl);
46-	return r;
47+       if (VECTOR_SIZE(conf->elist_property)) {
48+               log_filter(devname, NULL, NULL, NULL, env, NULL, r, lvl);
49+               return r;
50+       }
51+       return 0;
52 }
53
54 static void free_ble(struct blentry *ble)
55--
562.7.4
57
58