Blame SOURCES/0201-RHBZ-1403552-silence-warning.patch

4ae388
---
4ae388
 libmultipath/discovery.c |   15 +++++++++++----
4ae388
 multipathd/main.c        |   10 ++++++++++
4ae388
 2 files changed, 21 insertions(+), 4 deletions(-)
4ae388
4ae388
Index: multipath-tools-130222/libmultipath/discovery.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/discovery.c
4ae388
+++ multipath-tools-130222/libmultipath/discovery.c
4ae388
@@ -84,10 +84,6 @@ path_discover (vector pathvec, struct co
4ae388
 	if (!devname)
4ae388
 		return PATHINFO_FAILED;
4ae388
 
4ae388
-	if (filter_devnode(conf->blist_devnode, conf->elist_devnode,
4ae388
-			   (char *)devname) > 0)
4ae388
-		return PATHINFO_SKIPPED;
4ae388
-
4ae388
 	pp = find_path_by_dev(pathvec, (char *)devname);
4ae388
 	if (!pp) {
4ae388
 		return store_pathinfo(pathvec, conf->hwtable,
4ae388
@@ -1286,6 +1282,17 @@ pathinfo (struct path *pp, vector hwtabl
4ae388
 	if (!pp)
4ae388
 		return PATHINFO_FAILED;
4ae388
 
4ae388
+	/*
4ae388
+	 * For behavior backward-compatibility with multipathd,
4ae388
+	 * the blacklisting by filter_devnode() is not
4ae388
+	 * limited by DI_BLACKLIST and occurs before this debug
4ae388
+	 * message with the mask value.
4ae388
+	 */
4ae388
+	if (filter_devnode(conf->blist_devnode,
4ae388
+			   conf->elist_devnode,
4ae388
+			   pp->dev) > 0)
4ae388
+		return PATHINFO_SKIPPED;
4ae388
+
4ae388
 	condlog(3, "%s: mask = 0x%x", pp->dev, mask);
4ae388
 
4ae388
 	/*
4ae388
Index: multipath-tools-130222/multipathd/main.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/multipathd/main.c
4ae388
+++ multipath-tools-130222/multipathd/main.c
4ae388
@@ -776,6 +776,16 @@ uev_update_path (struct uevent *uev, str
4ae388
 
4ae388
 	pp = find_path_by_dev(vecs->pathvec, uev->kernel);
4ae388
 	if (!pp) {
4ae388
+		/* If the path is blacklisted, print a debug/non-default verbosity message. */
4ae388
+		if (uev->udev) {
4ae388
+			int flag = DI_SYSFS | DI_WWID;
4ae388
+
4ae388
+			if (store_pathinfo(NULL, conf->hwtable, uev->udev, flag, NULL) == PATHINFO_SKIPPED) {
4ae388
+				condlog(3, "%s: spurious uevent, path is blacklisted", uev->kernel);
4ae388
+				return 0;
4ae388
+			}
4ae388
+		}
4ae388
+
4ae388
 		condlog(0, "%s: spurious uevent, path not found",
4ae388
 			uev->kernel);
4ae388
 		return 1;