[nfs-utils/f14/master] Allow the setting of the NFSv4 grace period (bz 665387)
Steve Dickson
steved at fedoraproject.org
Sat Jan 15 19:04:44 UTC 2011
commit 27400c05b3b29bd78b856f3a7d7515c0b3424445
Author: Steve Dickson <steved at redhat.com>
Date: Sat Jan 15 14:02:07 2011 -0500
Allow the setting of the NFSv4 grace period (bz 665387)
Signed-off-by: Steve Dickson <steved at redhat.com>
nfs.init | 5 +++++
nfs.sysconfig | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/nfs.init b/nfs.init
index 7e250da..bc13e5a 100755
--- a/nfs.init
+++ b/nfs.init
@@ -85,6 +85,11 @@ case "$1" in
/sbin/modprobe nfsd
[ -n "$RDMA_PORT" ] && /sbin/modprobe svcrdma
}
+
+ # Set v4 grace period if requested
+ [ -n "$NFSD_V4_GRACE" ] && {
+ echo "$NFSD_V4_GRACE" > /proc/fs/nfsd/nfsv4gracetime
+ }
action $"Starting NFS services: " /usr/sbin/exportfs -r
if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
diff --git a/nfs.sysconfig b/nfs.sysconfig
index 2bd14d3..6290525 100644
--- a/nfs.sysconfig
+++ b/nfs.sysconfig
@@ -32,6 +32,8 @@
#RPCNFSDCOUNT=8
# Stop the nfsd module from being pre-loaded
#NFSD_MODULE="noload"
+# Set V4 grace period in seconds
+#NFSD_V4_GRACE=90
#
#
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
More information about the scm-commits
mailing list