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

4728c8
---
4728c8
 libmultipath/discovery.c |    2 ++
4728c8
 1 file changed, 2 insertions(+)
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
@@ -280,6 +280,8 @@ sysfs_get_tgt_nodename (struct path *pp,
4728c8
 			const char *value;
4728c8
 
4728c8
 			value = udev_device_get_sysattr_value(tgtdev, "tgtname");
4728c8
+			if (!value)
4728c8
+				value = udev_device_get_sysattr_value(tgtdev, "targetname");
4728c8
 			if (value) {
4728c8
 				pp->sg_id.proto_id = SCSI_PROTOCOL_ISCSI;
4728c8
 				pp->sg_id.transport_id = tgtid;