From 6e98df0a62433e5dab146f8b0f4fd62874db649a Mon Sep 17 00:00:00 2001 From: harshitap26 <88329939+harshitap26@users.noreply.github.com> Date: Thu, 10 Feb 2022 00:30:05 +0530 Subject: [PATCH] NVMe Connect Changes (#3) --- gonvme_tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gonvme_tcp.go b/gonvme_tcp.go index b69a50b..64495b0 100644 --- a/gonvme_tcp.go +++ b/gonvme_tcp.go @@ -257,7 +257,7 @@ func (nvme *NVMeTCP) nvmeConnect(target NVMeTarget) error { if status, ok := exiterr.Sys().(syscall.WaitStatus); ok { nvmeConnectResult = status.ExitStatus() } - if nvmeConnectResult == 114 { + if nvmeConnectResult == 114 || nvmeConnectResult == 70 { // session already exists // do not treat this as a failure fmt.Printf("\nnvme connection already exists to: %s", target.TargetNqn)