From: Mike Christie Date: Tue, 18 Oct 2011 03:42:13 +0000 (-0500) Subject: [SCSI] qla4xxx: export address/port of connection (fix udev disk names) X-Git-Tag: upstream/snapshot3+hdmi~8885^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=590134fa78fbdbe5fea78c7ae0b2c3364bc9572f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [SCSI] qla4xxx: export address/port of connection (fix udev disk names) Udev uses the connection's persistent address/port in the /dev/disk/by-path name. qla4xxx is not exporting this value so its iscsi disk names have been lacking the iscsi info. In the old driver we did not have this information but we do now and can fix this by just setting the flags to tell libiscsi/scsi_transport_iscsi to export this info in sysfs. Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index ba6a8f3..30f31b1 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -203,6 +203,8 @@ static mode_t ql4_attr_is_visible(int param_type, int param) } case ISCSI_PARAM: switch (param) { + case ISCSI_PARAM_PERSISTENT_ADDRESS: + case ISCSI_PARAM_PERSISTENT_PORT: case ISCSI_PARAM_CONN_ADDRESS: case ISCSI_PARAM_CONN_PORT: case ISCSI_PARAM_TARGET_NAME: