Allow the setting of the NFSv4 grace period (bz 665387)

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2011-01-15 14:02:07 -05:00
parent 10702da2ca
commit 423f02dd9c
2 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,11 @@ case "$1" in
/sbin/modprobe nfsd /sbin/modprobe nfsd
[ -n "$RDMA_PORT" ] && /sbin/modprobe svcrdma [ -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 action $"Starting NFS services: " /usr/sbin/exportfs -r
if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then

View File

@ -32,6 +32,8 @@
#RPCNFSDCOUNT=8 #RPCNFSDCOUNT=8
# Stop the nfsd module from being pre-loaded # Stop the nfsd module from being pre-loaded
#NFSD_MODULE="noload" #NFSD_MODULE="noload"
# Set V4 grace period in seconds
#NFSD_V4_GRACE=90
# #
# #
# Optional arguments passed to rpc.mountd. See rpc.mountd(8) # Optional arguments passed to rpc.mountd. See rpc.mountd(8)