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

54e364
From 6629618e3581cbe632b7408a49437270bc04a8d4 Mon Sep 17 00:00:00 2001
4b292f
From: Chris Leech <cleech@redhat.com>
4b292f
Date: Mon, 24 Feb 2014 09:33:33 -0800
54e364
Subject: [PATCH 13/32] 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
-- 
54e364
2.14.4
4b292f