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

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