From 423f02dd9cb1b974757b915f5f001cf74269ed67 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Sat, 15 Jan 2011 14:02:07 -0500 Subject: [PATCH] Allow the setting of the NFSv4 grace period (bz 665387) Signed-off-by: Steve Dickson --- nfs.init | 5 +++++ nfs.sysconfig | 2 ++ 2 files changed, 7 insertions(+) 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 c58cd33..4b090b1 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)