Blame SOURCES/0129-UPBZ-1254292-iscsi-targetname.patch

38852f
---
38852f
 libmultipath/discovery.c |    2 ++
38852f
 1 file changed, 2 insertions(+)
38852f
38852f
Index: multipath-tools-130222/libmultipath/discovery.c
38852f
===================================================================
38852f
--- multipath-tools-130222.orig/libmultipath/discovery.c
38852f
+++ multipath-tools-130222/libmultipath/discovery.c
38852f
@@ -280,6 +280,8 @@ sysfs_get_tgt_nodename (struct path *pp,
38852f
 			const char *value;
38852f
 
38852f
 			value = udev_device_get_sysattr_value(tgtdev, "tgtname");
38852f
+			if (!value)
38852f
+				value = udev_device_get_sysattr_value(tgtdev, "targetname");
38852f
 			if (value) {
38852f
 				pp->sg_id.proto_id = SCSI_PROTOCOL_ISCSI;
38852f
 				pp->sg_id.transport_id = tgtid;