From: Mike Christie Date: Mon, 15 Aug 2011 01:42:56 +0000 (-0500) Subject: qla4xxx: export iface name X-Git-Tag: v2.6.39-400.9.0~822^2~1^2~22 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=36d452e84ee041f3d4d633d6572ee49884073f23;p=users%2Fjedix%2Flinux-maple.git qla4xxx: export iface name Export the name of iface session is attached to. This is needed so tools like iscsiadm/iscsistart can match the sessions to userspace ifaces when rebuilding iscsid's state during boot. 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 456cd6f23f0f..ce391d5511e3 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -213,6 +213,7 @@ static mode_t ql4_attr_is_visible(int param_type, int param) case ISCSI_PARAM_FIRST_BURST: case ISCSI_PARAM_MAX_RECV_DLENGTH: case ISCSI_PARAM_MAX_XMIT_DLENGTH: + case ISCSI_PARAM_IFACE_NAME: return S_IRUGO; default: return 0;