Blame SOURCES/0246-RHBZ-1593459-add-transport-blacklist.patch

326330
---
326330
 libmultipath/blacklist.c   |   50 ++++++++++++++++++++++++++----
326330
 libmultipath/blacklist.h   |    3 +
326330
 libmultipath/config.c      |   16 +++++++++
326330
 libmultipath/config.h      |    2 +
326330
 libmultipath/dict.c        |   38 +++++++++++++++++++++--
326330
 libmultipath/discovery.c   |    5 +--
326330
 libmultipath/print.c       |   74 +++++++++++++++++++++++++++++++++++++++++++++
326330
 libmultipath/print.h       |    2 +
326330
 libmultipath/structs.h     |    1 
326330
 multipath/multipath.conf.5 |   15 +++++++++
326330
 10 files changed, 194 insertions(+), 12 deletions(-)
326330
6add9d
Index: multipath-tools-130222/libmultipath/blacklist.c
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/blacklist.c
6add9d
+++ multipath-tools-130222/libmultipath/blacklist.c
326330
@@ -12,6 +12,8 @@
326330
 #include "structs.h"
326330
 #include "config.h"
326330
 #include "blacklist.h"
326330
+#include "structs_vec.h"
326330
+#include "print.h"
326330
 
326330
 extern int
326330
 store_ble (vector blist, char * str, int origin)
326330
@@ -211,12 +213,14 @@ setup_default_blist (struct config * con
326330
 		condlog(3, "%s: (%s) %s", dev, wwid, (M));		 \
326330
 	else if (env)							 \
326330
 		condlog(3, "%s: (%s) %s", dev, env, (M));		 \
326330
+	else if (protocol)						 \
326330
+		condlog(3, "%s: (%s) %s", dev, protocol, (M));		 \
326330
 	else								 \
326330
 		condlog(3, "%s: %s", dev, (M))
326330
 
326330
 void
326330
 log_filter (const char *dev, char *vendor, char *product, char *wwid,
326330
-	    const char *env, int r)
326330
+	    const char *env, char *protocol, int r)
326330
 {
326330
 	/*
326330
 	 * Try to sort from most likely to least.
326330
@@ -236,6 +240,9 @@ log_filter (const char *dev, char *vendo
326330
 	case MATCH_PROPERTY_BLIST:
326330
 		LOG_BLIST("udev property blacklisted");
326330
 		break;
326330
+	case MATCH_PROTOCOL_BLIST:
326330
+		LOG_BLIST("protocol blacklisted");
326330
+		break;
326330
 	case MATCH_DEVICE_BLIST_EXCEPT:
326330
 		LOG_BLIST("vendor/product whitelisted");
326330
 		break;
326330
@@ -251,6 +258,9 @@ log_filter (const char *dev, char *vendo
326330
 	case MATCH_PROPERTY_BLIST_MISSING:
326330
 		LOG_BLIST("blacklisted, udev property missing");
326330
 		break;
326330
+	case MATCH_PROTOCOL_BLIST_EXCEPT:
326330
+		LOG_BLIST("protocol whitelisted");
326330
+		break;
326330
 	}
326330
 }
326330
 
326330
@@ -270,7 +280,7 @@ int
326330
 filter_device (vector blist, vector elist, char * vendor, char * product)
326330
 {
326330
 	int r = _filter_device(blist, elist, vendor, product);
326330
-	log_filter(NULL, vendor, product, NULL, NULL, r);
326330
+	log_filter(NULL, vendor, product, NULL, NULL, NULL, r);
326330
 	return r;
326330
 }
326330
 
326330
@@ -290,7 +300,7 @@ int
326330
 filter_devnode (vector blist, vector elist, char * dev)
326330
 {
326330
 	int r = _filter_devnode(blist, elist, dev);
326330
-	log_filter(dev, NULL, NULL, NULL, NULL, r);
326330
+	log_filter(dev, NULL, NULL, NULL, NULL, NULL, r);
326330
 	return r;
326330
 }
326330
 
326330
@@ -310,7 +320,7 @@ int
326330
 filter_wwid (vector blist, vector elist, char * wwid)
326330
 {
326330
 	int r = _filter_wwid(blist, elist, wwid);
326330
-	log_filter(NULL, NULL, NULL, wwid, NULL, r);
326330
+	log_filter(NULL, NULL, NULL, wwid, NULL, NULL, r);
326330
 	return r;
326330
 }
326330
 
326330
@@ -346,7 +356,7 @@ filter_property(struct config * conf, st
326330
 
326330
 		r = _filter_property(conf, env);
326330
 		if (r) {
326330
-			log_filter(devname, NULL, NULL, NULL, env, r);
326330
+			log_filter(devname, NULL, NULL, NULL, env, NULL, r);
326330
 			return r;
326330
 		}
326330
 	}
326330
@@ -356,13 +366,35 @@ filter_property(struct config * conf, st
326330
 	 * the environment variable _has_ to match.
326330
 	 */
326330
 	if (VECTOR_SIZE(conf->elist_property)) {
326330
-		log_filter(devname, NULL, NULL, NULL, NULL,
326330
+		log_filter(devname, NULL, NULL, NULL, NULL, NULL,
326330
 				MATCH_PROPERTY_BLIST_MISSING);
326330
 		return MATCH_PROPERTY_BLIST_MISSING;
326330
 	}
326330
 	return 0;
326330
 }
326330
 
326330
+static int
326330
+_filter_protocol(vector blist, vector elist, char *protocol_str)
326330
+{
326330
+	if (_blacklist_exceptions(elist, protocol_str))
326330
+		return MATCH_PROTOCOL_BLIST_EXCEPT;
326330
+	if (_blacklist(blist, protocol_str))
326330
+		return MATCH_PROTOCOL_BLIST;
326330
+	return 0;
326330
+}
326330
+
326330
+int
326330
+filter_protocol(vector blist, vector elist, struct path * pp)
326330
+{
326330
+	char buf[PROTOCOL_BUF_SIZE];
326330
+	int r;
326330
+
326330
+	snprint_path_protocol(buf, sizeof(buf), pp);
326330
+	r = _filter_protocol(blist, elist, buf);
326330
+	log_filter(pp->dev, NULL, NULL, NULL, NULL, buf, r);
326330
+	return r;
326330
+}
326330
+
326330
 int
326330
 _filter_path (struct config * conf, struct path * pp)
326330
 {
326330
@@ -371,6 +403,9 @@ _filter_path (struct config * conf, stru
326330
 	r = filter_property(conf, pp->udev);
326330
 	if (r > 0)
326330
 		return r;
326330
+	r = filter_protocol(conf->blist_protocol, conf->elist_protocol, pp);
326330
+	if (r > 0)
326330
+		return r;
326330
 	r = _filter_devnode(conf->blist_devnode, conf->elist_devnode,pp->dev);
326330
 	if (r > 0)
326330
 		return r;
326330
@@ -386,7 +421,8 @@ int
326330
 filter_path (struct config * conf, struct path * pp)
326330
 {
326330
 	int r=_filter_path(conf, pp);
326330
-	log_filter(pp->dev, pp->vendor_id, pp->product_id, pp->wwid, NULL, r);
326330
+	log_filter(pp->dev, pp->vendor_id, pp->product_id, pp->wwid, NULL,
326330
+		   NULL, r);
326330
 	return r;
326330
 }
326330
 
6add9d
Index: multipath-tools-130222/libmultipath/blacklist.h
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/blacklist.h
6add9d
+++ multipath-tools-130222/libmultipath/blacklist.h
326330
@@ -10,10 +10,12 @@
326330
 #define MATCH_DEVNODE_BLIST 3
326330
 #define MATCH_PROPERTY_BLIST 4
326330
 #define MATCH_PROPERTY_BLIST_MISSING 5
326330
+#define MATCH_PROTOCOL_BLIST 6
326330
 #define MATCH_WWID_BLIST_EXCEPT    -MATCH_WWID_BLIST
326330
 #define MATCH_DEVICE_BLIST_EXCEPT  -MATCH_DEVICE_BLIST
326330
 #define MATCH_DEVNODE_BLIST_EXCEPT -MATCH_DEVNODE_BLIST
326330
 #define MATCH_PROPERTY_BLIST_EXCEPT -MATCH_PROPERTY_BLIST
326330
+#define MATCH_PROTOCOL_BLIST_EXCEPT -MATCH_PROTOCOL_BLIST
326330
 
326330
 struct blentry {
326330
 	char * str;
326330
@@ -36,6 +38,7 @@ int filter_wwid (vector, vector, char *)
326330
 int filter_device (vector, vector, char *, char *);
326330
 int filter_path (struct config *, struct path *);
326330
 int filter_property(struct config *, struct udev_device *);
326330
+int filter_protocol(vector, vector, struct path *);
326330
 int store_ble (vector, char *, int);
326330
 int set_ble_device (vector, char *, char *, int);
326330
 void free_blacklist (vector);
6add9d
Index: multipath-tools-130222/libmultipath/config.c
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/config.c
6add9d
+++ multipath-tools-130222/libmultipath/config.c
6add9d
@@ -600,11 +600,13 @@ free_config (struct config * conf)
326330
 	free_blacklist(conf->blist_devnode);
326330
 	free_blacklist(conf->blist_wwid);
326330
 	free_blacklist(conf->blist_property);
326330
+	free_blacklist(conf->blist_protocol);
326330
 	free_blacklist_device(conf->blist_device);
326330
 
326330
 	free_blacklist(conf->elist_devnode);
326330
 	free_blacklist(conf->elist_wwid);
326330
 	free_blacklist(conf->elist_property);
326330
+	free_blacklist(conf->elist_protocol);
326330
 	free_blacklist_device(conf->elist_device);
326330
 
326330
 	free_mptable(conf->mptable);
6add9d
@@ -792,6 +794,13 @@ load_config (char * file, struct udev *u
326330
 			goto out;
326330
 	}
326330
 
326330
+	if (conf->blist_protocol == NULL) {
326330
+		conf->blist_protocol = vector_alloc();
326330
+
326330
+		if (!conf->blist_protocol)
326330
+			goto out;
326330
+	}
326330
+
326330
 	if (conf->elist_devnode == NULL) {
326330
 		conf->elist_devnode = vector_alloc();
326330
 
6add9d
@@ -819,6 +828,13 @@ load_config (char * file, struct udev *u
326330
 			goto out;
326330
 	}
326330
 
326330
+	if (conf->elist_protocol == NULL) {
326330
+		conf->elist_protocol = vector_alloc();
326330
+
326330
+		if (!conf->elist_protocol)
326330
+			goto out;
326330
+	}
326330
+
326330
 	if (setup_default_blist(conf))
326330
 		goto out;
326330
 
6add9d
Index: multipath-tools-130222/libmultipath/config.h
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/config.h
6add9d
+++ multipath-tools-130222/libmultipath/config.h
6add9d
@@ -194,10 +194,12 @@ struct config {
326330
 	vector blist_wwid;
326330
 	vector blist_device;
326330
 	vector blist_property;
326330
+	vector blist_protocol;
326330
 	vector elist_devnode;
326330
 	vector elist_wwid;
326330
 	vector elist_device;
326330
 	vector elist_property;
326330
+	vector elist_protocol;
326330
 };
326330
 
326330
 struct config * conf;
6add9d
Index: multipath-tools-130222/libmultipath/dict.c
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/dict.c
6add9d
+++ multipath-tools-130222/libmultipath/dict.c
6add9d
@@ -1092,9 +1092,12 @@ blacklist_handler(vector strvec)
326330
 		conf->blist_device = vector_alloc();
326330
 	if (!conf->blist_property)
326330
 		conf->blist_property = vector_alloc();
326330
+	if (!conf->blist_protocol)
326330
+		conf->blist_protocol = vector_alloc();
326330
 
326330
 	if (!conf->blist_devnode || !conf->blist_wwid ||
326330
-	    !conf->blist_device || !conf->blist_property)
326330
+	    !conf->blist_device || !conf->blist_property ||
326330
+	    !conf->blist_protocol)
326330
 		return 1;
326330
 
326330
 	return 0;
6add9d
@@ -1111,9 +1114,12 @@ blacklist_exceptions_handler(vector strv
326330
 		conf->elist_device = vector_alloc();
326330
 	if (!conf->elist_property)
326330
 		conf->elist_property = vector_alloc();
326330
+	if (!conf->elist_protocol)
326330
+		conf->elist_protocol = vector_alloc();
326330
 
326330
 	if (!conf->elist_devnode || !conf->elist_wwid ||
326330
-	    !conf->elist_device || !conf->elist_property)
326330
+	    !conf->elist_device || !conf->elist_property ||
326330
+	    !conf->elist_protocol)
326330
 		return 1;
326330
 
326330
 	return 0;
6add9d
@@ -1198,6 +1204,32 @@ ble_except_property_handler(vector strve
326330
 }
326330
 
326330
 static int
326330
+ble_protocol_handler(vector strvec)
326330
+{
326330
+	char * buff;
326330
+
326330
+	buff = set_value(strvec);
326330
+
326330
+	if (!buff)
326330
+		return 1;
326330
+
326330
+	return store_ble(conf->blist_protocol, buff, ORIGIN_CONFIG);
326330
+}
326330
+
326330
+static int
326330
+ble_except_protocol_handler(vector strvec)
326330
+{
326330
+	char * buff;
326330
+
326330
+	buff = set_value(strvec);
326330
+
326330
+	if (!buff)
326330
+		return 1;
326330
+
326330
+	return store_ble(conf->elist_protocol, buff, ORIGIN_CONFIG);
326330
+}
326330
+
326330
+static int
326330
 ble_device_handler(vector strvec)
326330
 {
326330
 	return alloc_ble_device(conf->blist_device);
6add9d
@@ -4021,6 +4053,7 @@ init_keywords(void)
326330
 	install_keyword_multi("devnode", &ble_devnode_handler, &snprint_ble_simple);
326330
 	install_keyword_multi("wwid", &ble_wwid_handler, &snprint_ble_simple);
326330
 	install_keyword_multi("property", &ble_property_handler, &snprint_ble_simple);
326330
+	install_keyword_multi("protocol", &ble_protocol_handler, &snprint_ble_simple);
326330
 	install_keyword_multi("device", &ble_device_handler, NULL);
326330
 	install_sublevel();
326330
 	install_keyword("vendor", &ble_vendor_handler, &snprint_bled_vendor);
6add9d
@@ -4030,6 +4063,7 @@ init_keywords(void)
326330
 	install_keyword_multi("devnode", &ble_except_devnode_handler, &snprint_ble_simple);
326330
 	install_keyword_multi("wwid", &ble_except_wwid_handler, &snprint_ble_simple);
326330
 	install_keyword_multi("property", &ble_except_property_handler, &snprint_ble_simple);
326330
+	install_keyword_multi("protocol", &ble_except_protocol_handler, &snprint_ble_simple);
326330
 	install_keyword_multi("device", &ble_except_device_handler, NULL);
326330
 	install_sublevel();
326330
 	install_keyword("vendor", &ble_except_vendor_handler, &snprint_bled_vendor);
6add9d
Index: multipath-tools-130222/libmultipath/print.c
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/print.c
6add9d
+++ multipath-tools-130222/libmultipath/print.c
6add9d
@@ -607,6 +607,48 @@ snprint_path_failures(char * buff, size_
6add9d
 	return snprint_int(buff, len, pp->failcount);
326330
 }
326330
 
326330
+/* if you add a protocol string bigger than "scsi:unspec" you must
326330
+ * also change PROTOCOL_BUF_SIZE */
326330
+int
326330
+snprint_path_protocol(char * buff, size_t len, struct path * pp)
326330
+{
326330
+	switch (pp->bus) {
326330
+	case SYSFS_BUS_SCSI:
326330
+		switch (pp->sg_id.proto_id) {
326330
+		case SCSI_PROTOCOL_FCP:
326330
+			return snprintf(buff, len, "scsi:fcp");
326330
+		case SCSI_PROTOCOL_SPI:
326330
+			return snprintf(buff, len, "scsi:spi");
326330
+		case SCSI_PROTOCOL_SSA:
326330
+			return snprintf(buff, len, "scsi:ssa");
326330
+		case SCSI_PROTOCOL_SBP:
326330
+			return snprintf(buff, len, "scsi:sbp");
326330
+		case SCSI_PROTOCOL_SRP:
326330
+			return snprintf(buff, len, "scsi:srp");
326330
+		case SCSI_PROTOCOL_ISCSI:
326330
+			return snprintf(buff, len, "scsi:iscsi");
326330
+		case SCSI_PROTOCOL_SAS:
326330
+			return snprintf(buff, len, "scsi:sas");
326330
+		case SCSI_PROTOCOL_ADT:
326330
+			return snprintf(buff, len, "scsi:adt");
326330
+		case SCSI_PROTOCOL_ATA:
326330
+			return snprintf(buff, len, "scsi:ata");
326330
+		case SCSI_PROTOCOL_UNSPEC:
326330
+		default:
326330
+			return snprintf(buff, len, "scsi:unspec");
326330
+		}
326330
+	case SYSFS_BUS_CCW:
326330
+		return snprintf(buff, len, "ccw");
326330
+	case SYSFS_BUS_CCISS:
326330
+		return snprintf(buff, len, "cciss");
326330
+	case SYSFS_BUS_NVME:
326330
+		return snprintf(buff, len, "nvme");
326330
+	case SYSFS_BUS_UNDEF:
326330
+	default:
326330
+		return snprintf(buff, len, "undef");
326330
+	}
326330
+}
326330
+
326330
 struct multipath_data mpd[] = {
326330
 	{'n', "name",          0, snprint_name},
326330
 	{'w', "uuid",          0, snprint_multipath_uuid},
6add9d
@@ -654,6 +696,7 @@ struct path_data pd[] = {
326330
 	{'r', "target WWPN",   0, snprint_tgt_wwpn},
326330
 	{'a', "host adapter",  0, snprint_host_adapter},
6add9d
 	{'0', "failures",      0, snprint_path_failures},
326330
+	{'P', "protocol",      0, snprint_path_protocol},
326330
 	{0, NULL, 0 , NULL}
326330
 };
326330
 
6add9d
@@ -1435,6 +1478,19 @@ snprint_blacklist_report (char * buff, i
326330
 
326330
 	if ((len - fwd - threshold) <= 0)
326330
 		return len;
326330
+	fwd += snprintf(buff + fwd, len - fwd, "protocol rules:\n"
326330
+					       "- blacklist:\n");
326330
+	if (!snprint_blacklist_group(buff, len, &fwd, &conf->blist_protocol))
326330
+		return len;
326330
+
326330
+	if ((len - fwd - threshold) <= 0)
326330
+		return len;
326330
+	fwd += snprintf(buff + fwd, len - fwd, "- exceptions:\n");
326330
+	if (snprint_blacklist_group(buff, len, &fwd, &conf->elist_protocol) == 0)
326330
+		return len;
326330
+
326330
+	if ((len - fwd - threshold) <= 0)
326330
+		return len;
326330
 	fwd += snprintf(buff + fwd, len - fwd, "wwid rules:\n"
326330
 					       "- blacklist:\n");
326330
 	if (snprint_blacklist_group(buff, len, &fwd, &conf->blist_wwid) == 0)
6add9d
@@ -1509,6 +1565,15 @@ snprint_blacklist (char * buff, int len)
326330
 		if (fwd > len)
326330
 			return len;
326330
 	}
326330
+	vector_foreach_slot (conf->blist_protocol, ble, i) {
326330
+		kw = find_keyword(rootkw->sub, "protocol");
326330
+		if (!kw)
326330
+			return 0;
326330
+		fwd += snprint_keyword(buff + fwd, len - fwd, "\t%k %v\n",
326330
+				       kw, ble);
326330
+		if (fwd > len)
326330
+			return len;
326330
+	}
326330
 	rootkw = find_keyword(rootkw->sub, "device");
326330
 	if (!rootkw)
326330
 		return 0;
6add9d
@@ -1582,6 +1647,15 @@ snprint_blacklist_except (char * buff, i
326330
 		if (!kw)
326330
 			return 0;
326330
 		fwd += snprint_keyword(buff + fwd, len - fwd, "\t%k %v\n",
326330
+				       kw, ele);
326330
+		if (fwd > len)
326330
+			return len;
326330
+	}
326330
+	vector_foreach_slot (conf->elist_protocol, ele, i) {
326330
+		kw = find_keyword(rootkw->sub, "protocol");
326330
+		if (!kw)
326330
+			return 0;
326330
+		fwd += snprint_keyword(buff + fwd, len - fwd, "\t%k %v\n",
326330
 				       kw, ele);
326330
 		if (fwd > len)
326330
 			return len;
6add9d
Index: multipath-tools-130222/libmultipath/print.h
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/print.h
6add9d
+++ multipath-tools-130222/libmultipath/print.h
326330
@@ -115,6 +115,8 @@ int snprint_host_wwnn (char *, size_t, s
326330
 int snprint_host_wwpn (char *, size_t, struct path *);
326330
 int snprint_tgt_wwnn (char *, size_t, struct path *);
326330
 int snprint_tgt_wwpn (char *, size_t, struct path *);
326330
+#define PROTOCOL_BUF_SIZE sizeof("scsi:unspec")
326330
+int snprint_path_protocol(char *, size_t, struct path *);
326330
 
326330
 void print_multipath_topology (struct multipath * mpp, int verbosity);
326330
 void print_path (struct path * pp, char * style);
6add9d
Index: multipath-tools-130222/libmultipath/structs.h
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/structs.h
6add9d
+++ multipath-tools-130222/libmultipath/structs.h
6add9d
@@ -57,7 +57,6 @@ enum failback_mode {
326330
 enum sysfs_buses {
326330
 	SYSFS_BUS_UNDEF,
326330
 	SYSFS_BUS_SCSI,
326330
-	SYSFS_BUS_IDE,
326330
 	SYSFS_BUS_CCW,
326330
 	SYSFS_BUS_CCISS,
6add9d
 	SYSFS_BUS_NVME,
6add9d
Index: multipath-tools-130222/libmultipath/discovery.c
6add9d
===================================================================
6add9d
--- multipath-tools-130222.orig/libmultipath/discovery.c
6add9d
+++ multipath-tools-130222/libmultipath/discovery.c
6add9d
@@ -1407,9 +1407,10 @@ pathinfo (struct path *pp, vector hwtabl
6add9d
 
6add9d
 	if (mask & DI_BLACKLIST && mask & DI_SYSFS) {
6add9d
 		if (filter_device(conf->blist_device, conf->elist_device,
6add9d
-				  pp->vendor_id, pp->product_id) > 0) {
6add9d
+				  pp->vendor_id, pp->product_id) > 0 ||
6add9d
+		    filter_protocol(conf->blist_protocol, conf->elist_protocol,
6add9d
+				    pp) > 0)
6add9d
 			return PATHINFO_SKIPPED;
6add9d
-		}
6add9d
 	}
6add9d
 
6add9d
 	path_state = path_offline(pp);
6add9d
Index: multipath-tools-130222/multipath/multipath.conf.5
326330
===================================================================
6add9d
--- multipath-tools-130222.orig/multipath/multipath.conf.5
6add9d
+++ multipath-tools-130222/multipath/multipath.conf.5
6add9d
@@ -640,6 +640,10 @@ Regular expression of the device nodes t
326330
 .B property
326330
 Regular expresion of the udev property to be excluded.
326330
 .TP
326330
+.B protocol
326330
+Regular expression of the protocol to be excluded. See below for a
326330
+list of recognized protocols
326330
+.TP
326330
 .B device
326330
 Subsection for the device description. This subsection recognizes the
326330
 .I vendor
6add9d
@@ -648,6 +652,13 @@ and
326330
 keywords. For a full description of these keywords please see the
326330
 .I devices
326330
 section description.
326330
+.LP
326330
+The protocol strings that multipath recognizes are \fIscsi:fcp\fR,
326330
+\fIscsi:spi\fR, \fIscsi:ssa\fR, \fIscsi:sbp\fR, \fIscsi:srp\fR,
326330
+\fIscsi:iscsi\fR, \fIscsi:sas\fR, \fIscsi:adt\fR, \fIscsi:ata\fR,
326330
+\fIscsi:unspec\fR, \fIccw\fR, \fIcciss\fR, \fInvme\fR, and \fIundef\fR.
326330
+The protocol that a path is using can be viewed by running
326330
+\fBmultipathd show paths format "%d %P"\fR
326330
 .SH "blacklist_exceptions section"
326330
 The
326330
 .I blacklist_exceptions
6add9d
@@ -667,6 +678,10 @@ The \fIWorld Wide Identification\fR of a
326330
 .B property
326330
 Regular expresion of the udev property to be whitelisted.
326330
 .TP
326330
+.B protocol
326330
+Regular expression of the protocol to be whitelisted. See the
326330
+\fBblacklist section\fR for a list of recognized protocols
326330
+.TP
326330
 .B devnode
326330
 Regular expression of the device nodes to be whitelisted.
326330
 .TP