Blame SOURCES/0016-Revert-iscsiadm-return-error-when-login-fails.patch

b7a469
From 49dc2a687175f9671a159df38971a15287dae18c Mon Sep 17 00:00:00 2001
587c20
From: Chris Leech <cleech@redhat.com>
587c20
Date: Mon, 24 Feb 2014 09:33:33 -0800
50a52f
Subject: [PATCH] Revert "iscsiadm: return error when login fails"
587c20
587c20
This reverts commit fc2a8e9a2911bc76f961fe3e4a159fab9b8b9691.
587c20
587c20
Done to address RHBZ #1015563
587c20
---
587c20
 usr/session_mgmt.c | 4 ++--
587c20
 1 file changed, 2 insertions(+), 2 deletions(-)
587c20
587c20
diff --git a/usr/session_mgmt.c b/usr/session_mgmt.c
50a52f
index 0500f15..1e1f2bc 100644
587c20
--- a/usr/session_mgmt.c
587c20
+++ b/usr/session_mgmt.c
587c20
@@ -178,12 +178,12 @@ int iscsi_login_portal(void *data, struct list_head *list, struct node_rec *rec)
587c20
 		goto done;
587c20
 	}
587c20
 	if (session_count >= rec->session.nr_sessions) {
587c20
-		log_warning("%s: %d session%s requested, but %d "
587c20
+		log_debug(1, "%s: %d session%s requested, but %d "
587c20
 			  "already present.",
587c20
 			  rec->iface.name, rec->session.nr_sessions,
587c20
 			  rec->session.nr_sessions == 1 ? "" : "s",
587c20
 			  session_count);
587c20
-		rc = ISCSI_ERR_SESS_EXISTS;
587c20
+		rc = 0;
587c20
 		goto done;
587c20
 	}
587c20
 
587c20
-- 
b7a469
2.26.2
587c20