[SCSI] qla4xxx: export iface name
authorMike Christie <michaelc@cs.wisc.edu>
Mon, 15 Aug 2011 01:42:56 +0000 (20:42 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:36:54 +0000 (08:36 -0600)
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 <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_os.c

index 456cd6f..ce391d5 100644 (file)
@@ -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;