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

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