From 8b3dd6a7841755816ac15cb206602efb07c3c102 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Wed, 1 Jul 2015 17:55:47 +0530 Subject: extra: "enable-shared-storage" key should create shared-storage This patch is backport of: http://review.gluster.org/#/c/11491/ Currently while creating shared storage it accept only "cluster.enable-shared-storage" key. It should also accept "enable-shared-storage" key. Change-Id: I4c68782f4b7927ec8cd725e411b0b9db17d9c48d BUG: 1319645 Signed-off-by: Gaurav Kumar Garg >> Change-Id: I4c68782f4b7927ec8cd725e411b0b9db17d9c48d >> BUG: 1238224 >> Signed-off-by: Gaurav Kumar Garg >> Reviewed-on: http://review.gluster.org/11491 >> Tested-by: NetBSD Build System >> Tested-by: Gluster Build System >> Reviewed-by: Krishnan Parthasarathi >> Reviewed-by: Avra Sengupta (cherry picked from commit 890e58f5d4d3db9477e36cac3d16798ffe3b0480) Change-Id: Ic77fd67b90be3381cff33f18f49eee97972eb19a Reviewed-on: http://review.gluster.org/13794 Tested-by: Gaurav Kumar Garg Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Atin Mukherjee --- extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh index 90802196b40..ad51babd5f7 100755 --- a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh +++ b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh @@ -2,7 +2,7 @@ key=`echo $3 | cut -d '=' -f 1` val=`echo $3 | cut -d '=' -f 2` -if [ "$key" != "cluster.enable-shared-storage" ]; then +if [ ! "$key" -eq "enable-shared-storage" -o "$key" -eq "cluster.enable-shared-storage" ]; then exit; fi if [ "$val" != 'enable' ]; then -- cgit