aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-05-30 13:57:16 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2007-06-01 12:58:58 -0400
commitb2c6416736b847b91950bd43cc5153e11a1f83ee (patch)
tree7d7642d9b62b22aceedf8e86570783364ecd99d1 /include
parent857ae0bdb72999936a28ce621e38e2e288c485da (diff)
[SCSI] iscsi class, iscsi_tcp, ib_iser: add sysfs chap file
The attached patches add sysfs files for the chap settings to the iscsi transport class, iscsi_tcp and ib_iser. This is needed for software iscsi because there are times when iscsid can die and it will need to reread the values it was using. And it is needed by qla4xxx for basic management opertaions. This patch does not hook in qla4xxx yet, because I am not sure the mbx command to use. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Cc: Roland Dreier <rdreier@cisco.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r--include/scsi/iscsi_if.h9
-rw-r--r--include/scsi/libiscsi.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h
index e057c5d3703d..1a18196d77f6 100644
--- a/include/scsi/iscsi_if.h
+++ b/include/scsi/iscsi_if.h
@@ -229,6 +229,11 @@ enum iscsi_param {
229 ISCSI_PARAM_CONN_PORT, 229 ISCSI_PARAM_CONN_PORT,
230 ISCSI_PARAM_CONN_ADDRESS, 230 ISCSI_PARAM_CONN_ADDRESS,
231 231
232 ISCSI_PARAM_USERNAME,
233 ISCSI_PARAM_USERNAME_IN,
234 ISCSI_PARAM_PASSWORD,
235 ISCSI_PARAM_PASSWORD_IN,
236
232 /* must always be last */ 237 /* must always be last */
233 ISCSI_PARAM_MAX, 238 ISCSI_PARAM_MAX,
234}; 239};
@@ -255,6 +260,10 @@ enum iscsi_param {
255#define ISCSI_SESS_RECOVERY_TMO (1 << ISCSI_PARAM_SESS_RECOVERY_TMO) 260#define ISCSI_SESS_RECOVERY_TMO (1 << ISCSI_PARAM_SESS_RECOVERY_TMO)
256#define ISCSI_CONN_PORT (1 << ISCSI_PARAM_CONN_PORT) 261#define ISCSI_CONN_PORT (1 << ISCSI_PARAM_CONN_PORT)
257#define ISCSI_CONN_ADDRESS (1 << ISCSI_PARAM_CONN_ADDRESS) 262#define ISCSI_CONN_ADDRESS (1 << ISCSI_PARAM_CONN_ADDRESS)
263#define ISCSI_USERNAME (1 << ISCSI_PARAM_USERNAME)
264#define ISCSI_USERNAME_IN (1 << ISCSI_PARAM_USERNAME_IN)
265#define ISCSI_PASSWORD (1 << ISCSI_PARAM_PASSWORD)
266#define ISCSI_PASSWORD_IN (1 << ISCSI_PARAM_PASSWORD_IN)
258 267
259/* iSCSI HBA params */ 268/* iSCSI HBA params */
260enum iscsi_host_param { 269enum iscsi_host_param {
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h
index 348265d4a27e..61bc8f75b267 100644
--- a/include/scsi/libiscsi.h
+++ b/include/scsi/libiscsi.h
@@ -221,6 +221,10 @@ struct iscsi_session {
221 int dataseq_inorder_en; 221 int dataseq_inorder_en;
222 int erl; 222 int erl;
223 int tpgt; 223 int tpgt;
224 char *username;
225 char *username_in;
226 char *password;
227 char *password_in;
224 char *targetname; 228 char *targetname;
225 char *initiatorname; 229 char *initiatorname;
226 /* hw address being used for iscsi connection */ 230 /* hw address being used for iscsi connection */