summaryrefslogtreecommitdiffstats
path: root/extras/ganesha/scripts/Makefile.am
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2016-03-14 16:36:33 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-03-21 01:15:04 -0700
commit9879c4e543e37de753b2650ab6fcd427afb0169d (patch)
treeaf47dbd31d0a80a4e79ad15fff995929f11b4fb1 /extras/ganesha/scripts/Makefile.am
parent942d127fee13653daba49195692c5e8465f1fbff (diff)
ganesha: Include a script to generate epoch value
In a NFS-Ganesha HA cluster setup, for NFS clients to recover state succesfully post failover, the NFS-servers should start with a unique epoch value. With NFS-Ganesha 2.3, the service accepts an option "EPOCH_EXEC" which takes path of the script, generating epoch value. This script is executed before starting nfs-ganesha service so that the generated epoch value is used while bringing up the service. This patch includes the script to be used by nfs-ganesha+gluster setup. The epoch value is computed as follows - - first 32-bit contains the now() time - rest 32-bit value contains the local glusterd node uuid Change-Id: I876ea5a3730d7c6b40503e0fec16a4a142c54a36 BUG: 1317902 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/13744 Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: jiffin tony Thottan <jthottan@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'extras/ganesha/scripts/Makefile.am')
-rw-r--r--extras/ganesha/scripts/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/ganesha/scripts/Makefile.am b/extras/ganesha/scripts/Makefile.am
index e71e2f6456b..224ed26e75b 100644
--- a/extras/ganesha/scripts/Makefile.am
+++ b/extras/ganesha/scripts/Makefile.am
@@ -1,4 +1,6 @@
-EXTRA_DIST= ganesha-ha.sh dbus-send.sh create-export-ganesha.sh
+EXTRA_DIST= ganesha-ha.sh dbus-send.sh create-export-ganesha.sh \
+ generate-epoch.py
scriptsdir = $(libexecdir)/ganesha
-scripts_SCRIPTS = create-export-ganesha.sh dbus-send.sh ganesha-ha.sh
+scripts_SCRIPTS = create-export-ganesha.sh dbus-send.sh ganesha-ha.sh \
+ generate-epoch.py