path: root/extras/hook-scripts/reset
diff options
authorMeghana <>2014-05-12 12:26:18 +0000
committerVijay Bellur <>2014-05-16 10:01:36 -0700
commit6a9a52c932bc5be469af119e5b0b3afb8046f625 (patch)
treee7f4b3917e41ea97825fa514adfae080bf18010f /extras/hook-scripts/reset
parent05a5ffe97222ca7c49828f0d762a47e85411ab61 (diff)
Hooks:Modified to enable dynamic exports via NFS-ganesha
Dbus signals have to be sent to add and remove exports on the fly, without restarting nfs-ganesha server. Adding those signals in the hook script to enable the same. Adding another to check to enable IP modification, without restarting nfs-ganesha.Adding checks to find the configuration file in /etc/glusterfs-ganesha. Removing nested volume set options. This introduces some issues that will be documented clearly. Signed-off-by: Meghana <> Change-Id: I28f7983f2d18529dc813ddc9773b33c6caee1ad4 BUG: 1095656 Signed-off-by: Meghana <> Reviewed-on: Reviewed-by: Krishnan Parthasarathi <> Tested-by: Gluster Build System <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to 'extras/hook-scripts/reset')
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hook-scripts/reset/post/ b/extras/hook-scripts/reset/post/
index 68411e4bd95..a683af5c0c0 100755
--- a/extras/hook-scripts/reset/post/
+++ b/extras/hook-scripts/reset/post/
@@ -25,8 +25,8 @@ if ps aux | grep -q "[g]anesha.nfsd"
kill -s TERM `cat /var/run/`
sleep 10
- rm -rf /var/lib/ganesha/exports
- rm -rf /var/lib/ganesha/export_added
+ rm -rf /var/lib/glusterfs-ganesha/exports
+ rm -rf /var/lib/glusterfs-ganesha/.export_added
sed -i /conf/d /var/lib/ganesha/nfs-ganesha.conf
if [ "1" = $(is_volume_started "$VOL") ];