summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2018-09-25 09:48:53 -0700
committerLee Duncan <lduncan@suse.com>2018-09-26 10:53:59 -0700
commit7d121d12ad6ba7783308c25ffd338a9fa0cc402b (patch)
tree53c02435595e1e77fd23339c8e06e5f7d399c90a /include
parent09d7031cb462889392090e71991a89c522d387bc (diff)
downloadopen-iscsi-7d121d12ad6ba7783308c25ffd338a9fa0cc402b.tar.gz
Create a new error for "target not connected".
The session_logout_qtask() function now recognizes a new state of "target likely not connected" if syncing up, in connection wait state, and re-opening the connection.
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_err.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/iscsi_err.h b/include/iscsi_err.h
index 506bd8c..ed000dd 100644
--- a/include/iscsi_err.h
+++ b/include/iscsi_err.h
@@ -68,6 +68,8 @@ enum {
ISCSI_ERR_UNKNOWN_DISCOVERY_TYPE = 30,
/* child process terminated */
ISCSI_ERR_CHILD_TERMINATED = 31,
+ /* session likely not connected */
+ ISCSI_ERR_SESSION_NOT_CONNECTED = 32,
/* Always last. Indicates end of error code space */
ISCSI_MAX_ERR_VAL,