diff options
author | Lee Duncan <lduncan@suse.com> | 2021-04-25 09:26:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 09:26:45 -0700 |
commit | fdcaf992d91a21898b315c0b181b36711638ddaf (patch) | |
tree | b1585b42f606ebaf89609fb366d534189f97761b | |
parent | 2418580cddc8ec851c5fb75a91b605e12fec5aea (diff) | |
parent | fd129d25d33dafeba4446733905b4a70013286e7 (diff) | |
download | open-iscsi-fdcaf992d91a21898b315c0b181b36711638ddaf.tar.gz |
Merge pull request #260 from gulams/master
Check ISCSI_ERR_ISCSID_NOTCONN in iscsistart login
-rw-r--r-- | usr/iscsistart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/iscsistart.c b/usr/iscsistart.c index 755489f..206cd4c 100644 --- a/usr/iscsistart.c +++ b/usr/iscsistart.c @@ -259,7 +259,8 @@ static int login_session(struct node_rec *rec) rc = iscsid_exec_req(&req, &rsp, 0, tmo); if (rc == 0) { return rc; - } else if (rc == ISCSI_ERR_SESSION_NOT_CONNECTED) { + } else if (rc == ISCSI_ERR_SESSION_NOT_CONNECTED || + rc == ISCSI_ERR_ISCSID_NOTCONN) { ts.tv_sec = msec / 1000; ts.tv_nsec = (msec % 1000) * 1000000L; |