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

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