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

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