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

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