Blame 0013-Revert-iscsiadm-return-error-when-login-fails.patch

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