summaryrefslogtreecommitdiff
path: root/usr/config.h
diff options
context:
space:
mode:
authorJim Ramsay <jim_ramsay@dell.com>2011-07-01 11:55:08 -0400
committerMike Christie <michaelc@cs.wisc.edu>2011-07-07 16:39:14 -0500
commitec7d7431c8ec19d6c17c2e0fe3aec47fdfc12796 (patch)
tree2bfe6f5cd4afb32a29b18813d4966df4f9bde809 /usr/config.h
parent6b13206fbcdb4ffbce7836b836f8593608f478fd (diff)
downloadopen-iscsi-ec7d7431c8ec19d6c17c2e0fe3aec47fdfc12796.tar.gz
Implement leading-login support
Leading-login only takes effect when performing "login-by-startup" (ie, iscsiadm -m node -L ...). For any nodes with the new 'node.leading_login' config value set to "Yes" (The default is "No"), a login attempt will be made on each successive iface record until one succeeds. The intent is to only have a single iSCSI session for each configured target at startup but also allow for fallthrough to alternate ifaces in case of network issues. Signed-off-by: Jim Ramsay <jim_ramsay@dell.com>
Diffstat (limited to 'usr/config.h')
-rw-r--r--usr/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/config.h b/usr/config.h
index 1736382..0d475c2 100644
--- a/usr/config.h
+++ b/usr/config.h
@@ -231,6 +231,7 @@ typedef struct node_rec {
char name[TARGET_NAME_MAXLEN];
int tpgt;
iscsi_startup_e startup;
+ int leading_login;
session_rec_t session;
conn_rec_t conn[ISCSI_CONN_MAX];
iface_rec_t iface;