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

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