Blame SOURCES/0185-rbd-check-for-nonshared-clients.patch

c896fb
From c9a788f437f2729f943cd03c43e84b65d74eb015 Mon Sep 17 00:00:00 2001
c896fb
From: Mike Christie <mchristi@redhat.com>
c896fb
Date: Wed, 31 Aug 2016 15:22:09 -0500
c896fb
Subject: [PATCH 09/11] rbd: check for nonshared clients
c896fb
c896fb
The rbd checker only supports nonshared clients so add a check
c896fb
during init time.
c896fb
c896fb
Signed-off-by: Mike Christie <mchristi@redhat.com>
c896fb
---
c896fb
 libmultipath/checkers/rbd.c | 5 +++++
c896fb
 1 file changed, 5 insertions(+)
c896fb
c896fb
diff --git a/libmultipath/checkers/rbd.c b/libmultipath/checkers/rbd.c
c896fb
index 76f4005..a6f3405 100644
c896fb
--- a/libmultipath/checkers/rbd.c
c896fb
+++ b/libmultipath/checkers/rbd.c
c896fb
@@ -123,6 +123,11 @@ int libcheck_init(struct checker * c)
c896fb
 	if (!config_info)
c896fb
 		goto free_addr;
c896fb
 
c896fb
+	if (!strstr(config_info, "noshare")) {
c896fb
+		condlog(3, "Only nonshared clients supported.");
c896fb
+		goto free_addr;
c896fb
+	}
c896fb
+
c896fb
 	ct->config_info = strdup(config_info);
c896fb
 	if (!ct->config_info)
c896fb
 		goto free_addr;
c896fb
-- 
c896fb
1.8.3.1
c896fb