12a457
From ceca4691364a1c52493e4b2acb26efdb86f56f65 Mon Sep 17 00:00:00 2001
12a457
From: Gaurav Kumar Garg <ggarg@redhat.com>
12a457
Date: Wed, 1 Jul 2015 17:55:47 +0530
12a457
Subject: [PATCH 07/26] extra: "enable-shared-storage" key should create shared-storage
12a457
12a457
This patch is backport of: http://review.gluster.org/11491
12a457
12a457
Currently while creating shared storage it accept only
12a457
"cluster.enable-shared-storage" key. It should also
12a457
accept "enable-shared-storage" key.
12a457
12a457
Change-Id: I4c68782f4b7927ec8cd725e411b0b9db17d9c48d
12a457
BUG: 1319658
12a457
12a457
 >> Change-Id: I4c68782f4b7927ec8cd725e411b0b9db17d9c48d
12a457
 >> BUG: 1238224
12a457
 >> Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
12a457
 >> Reviewed-on: http://review.gluster.org/11491
12a457
 >> Tested-by: NetBSD Build System <jenkins@build.gluster.org>
12a457
 >> Tested-by: Gluster Build System <jenkins@build.gluster.com>
12a457
 >> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
12a457
 >> Reviewed-by: Avra Sengupta <asengupt@redhat.com>
12a457
12a457
Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
12a457
Change-Id: Ibd2160bab7bb3efd47675ace83ab613810d1cf60
12a457
Reviewed-on: https://code.engineering.redhat.com/gerrit/70320
12a457
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
12a457
Tested-by: Atin Mukherjee <amukherj@redhat.com>
12a457
---
12a457
 .../set/post/S32gluster_enable_shared_storage.sh   |    2 +-
12a457
 1 files changed, 1 insertions(+), 1 deletions(-)
12a457
12a457
diff --git a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh
12a457
index 9080219..ad51bab 100755
12a457
--- a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh
12a457
+++ b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh
12a457
@@ -2,7 +2,7 @@
12a457
 
12a457
 key=`echo $3 | cut -d '=' -f 1`
12a457
 val=`echo $3 | cut -d '=' -f 2`
12a457
-if [ "$key" != "cluster.enable-shared-storage" ]; then
12a457
+if [ ! "$key" -eq "enable-shared-storage" -o "$key" -eq "cluster.enable-shared-storage" ]; then
12a457
     exit;
12a457
 fi
12a457
 if [ "$val" != 'enable' ]; then
12a457
-- 
12a457
1.7.1
12a457