device-mapper-multipath/0130-UPBZ-1254292-iscsi-targetname.patch
Benjamin Marzinski cbf555a23c device-mapper-multipath-0.4.9-79
Add 0130-UPBZ-1254292-iscsi-targetname.patch
  * check for targetname iscsi sysfs value
2015-08-17 17:13:39 -05:00

18 lines
637 B
Diff

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