From 46183ffd36c9c2a6a1e67383c639897c572acad1 Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Thu, 2 Apr 2020 14:37:58 -0700 Subject: Add ability to attempt target logins asynchronously Add a "no wait" flag to iscsiadm, for use when it is logging into all targets of a certain "type", i.e. using the "--loginaall=" option, which iscsiadm will pass to the login_by_startup() routine. The wait/no-wait code was already present there, so just hook into it. NOTE: this means that "iscsiadm -m node ... -L=all -W" will return success if it is able to send a login request for each node, whether or not the logins succeed. The man page and usage info was also updated to document this new flag. --- doc/iscsiadm.8 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/iscsiadm.8 b/doc/iscsiadm.8 index bf23dd2..22263eb 100644 --- a/doc/iscsiadm.8 +++ b/doc/iscsiadm.8 @@ -51,6 +51,7 @@ iscsiadm \- open-iscsi administration utility .IR printlevel ] .RB [ \-L .IR all,manual,automatic,onboot ] +.RB [ \-W ] .RB [ \-U .IR all,manual,automatic,onboot ] .RB [ \-S ] @@ -292,7 +293,14 @@ in or all running session, except ones marked onboot, if all is passed in. This option is only valid for node mode (it is valid but not functional for session mode). .TP -\fB\-m, \-\-mode \fIop\fR +\fB\-W\fR, \fB\-\-\-no_wait\fR +In node mode, when logging in to one or more targets using the +\fB\-\-loginall\fR option, do not wait for a response from the targets. +This means that success will be returned if the command is able to +send the login requests, whether or not they succeed. In this case, it will +be up to the caller to poll for success (i.e. session creation). +.TP +\fB\-m\fR, \fB\-\-mode \fIop\fR specify the mode. \fIop\fR must be one of \fIdiscovery\fR, \fIdiscoverydb\fR, \fInode\fR, \fIfw\fR, \fIhost\fR \fIiface\fR or \fIsession\fR. -- cgit v1.2.1