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

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