diff options
author | Jim Ramsay <jim_ramsay@dell.com> | 2011-06-03 09:21:22 -0400 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2011-07-07 16:39:13 -0500 |
commit | 2ec7d01db8193268ce5271d813875fb6684fced0 (patch) | |
tree | d0edc0cb90fa985beaea6595e5f1270773a336c8 /usr/iscsi_util.h | |
parent | 8bd27eaa1d6e2db35c16c46f9619db833a24b136 (diff) | |
download | open-iscsi-2ec7d01db8193268ce5271d813875fb6684fced0.tar.gz |
Add specific session information to session_rec_t
This is populated by iscsiadm in 'session' mode when the '-r' options is
given, and passed along in the session_rec_t. It limits the operation
of exec_node_op to only the specific session specified by the user.
This is a prerequisite for "multiple sessions per iface recond".
Signed-off-by: Jim Ramsay <jim_ramsay@dell.com>
Diffstat (limited to 'usr/iscsi_util.h')
-rw-r--r-- | usr/iscsi_util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/iscsi_util.h b/usr/iscsi_util.h index 87b2bb2..9428867 100644 --- a/usr/iscsi_util.h +++ b/usr/iscsi_util.h @@ -16,7 +16,10 @@ extern char *str_to_ipport(char *str, int *port, int *tgpt); extern int iscsi_match_session(void *data, struct session_info *info); extern int __iscsi_match_session(struct node_rec *rec, char *targetname, char *address, int port, - struct iface_rec *iface); + struct iface_rec *iface, + unsigned sid); + +#define MATCH_ANY_SID 0 extern char *strstrip(char *s); extern char *cfg_get_string_param(char *pathname, const char *key); |