From 6d82215ab95d95ace13465a3efd384e50942ea67 Mon Sep 17 00:00:00 2001 From: Meghana Madhusudhan Date: Tue, 5 May 2015 18:19:51 +0530 Subject: Cache-invalidation : set to on/off depending on ganesha.enable value Multi-Head NFS-Ganesha servers need upcall (cache-invalidation) support to notify them in case of any changes to the files in the backend. Hence, upcall xlator option "features.cache-invalidation" needs to be enabled when ganesha.enable is set to 'on'. Similarly, this feature needs to be disabled when ganesha.enable is set to 'off' This is a back-port of the fix that is merged on master. http://review.gluster.org/#/c/10581/ Change-Id: I1b24c88b5a7cce963a184a0a90cee839873a8d6b BUG: 1218858 Signed-off-by: Meghana Madhusudhan Reviewed-on: http://review.gluster.org/10594 Reviewed-by: jiffin tony Thottan Reviewed-by: soumya k Tested-by: NetBSD Build System Reviewed-by: Kaleb KEITHLEY Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- extras/ganesha/scripts/create-export-ganesha.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extras') diff --git a/extras/ganesha/scripts/create-export-ganesha.sh b/extras/ganesha/scripts/create-export-ganesha.sh index de869c4629d..48c0ea5c16c 100755 --- a/extras/ganesha/scripts/create-export-ganesha.sh +++ b/extras/ganesha/scripts/create-export-ganesha.sh @@ -53,4 +53,7 @@ echo " }" } write_conf $@ > $GANESHA_DIR/exports/export.$VOL.conf +if ! (cat $CONF | grep $VOL.conf$ ) +then echo "%include \"$GANESHA_DIR/exports/export.$VOL.conf\"" >> $CONF +fi -- cgit