From 7d121d12ad6ba7783308c25ffd338a9fa0cc402b Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Tue, 25 Sep 2018 09:48:53 -0700 Subject: 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. --- include/iscsi_err.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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, -- cgit v1.2.1