From 10e67953e3fd8c451bf65ddbce9f18f9eca5087d37ac50343a75092dd1932c6c Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 2 Jun 2011 06:49:18 +0000 Subject: [PATCH] - nfsserver.init, sysconfig.nfs: add NFSV4LEASETIME parameter to allow lease time to be set. bnc#681510 OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=48 --- nfs-utils.changes | 7 +++++++ nfsserver.init | 4 ++++ sysconfig.nfs | 14 ++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/nfs-utils.changes b/nfs-utils.changes index 15b95be..249bc5b 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jun 2 06:48:03 UTC 2011 - nfbrown@novell.com + +- nfsserver.init, sysconfig.nfs: add NFSV4LEASETIME + parameter to allow lease time to be set. + bnc#681510 + ------------------------------------------------------------------- Tue May 31 11:43:41 UTC 2011 - lnussel@suse.de diff --git a/nfsserver.init b/nfsserver.init index b2bf9bb..6f626a8 100644 --- a/nfsserver.init +++ b/nfsserver.init @@ -188,6 +188,10 @@ case "$1" in if [ " `cat /proc/fs/nfsd/threads`" = " 0" ]; then echo $VERSION_LIST > /proc/fs/nfsd/versions fi + if [ -n "$NFSV4LEASETIME" -a -f /proc/fs/nfsd/nfsv4leasetime ]; then + echo "$NFSV4LEASETIME" > /proc/fs/nfsd/nfsv4leasetime + fi + nfs4_bind_mounts # svcgssd; idmapd if [ "$NEED_SVCGSSD" = yes ]; then diff --git a/sysconfig.nfs b/sysconfig.nfs index a744624..a819ae0 100644 --- a/sysconfig.nfs +++ b/sysconfig.nfs @@ -86,3 +86,17 @@ NFS_START_SERVICES="yes" # STATD_OPTIONS="" +## Path: Network/File systems/NFS server +## Description: Lease time for NFSv4 leases +## Type: integer +## Default: "" +# +# Set the lease time for the NFSv4 server. This allows new locks +# to be taken sooner after a server restart, so it is useful for +# servers which need to recover quickly after a failure, particularly +# in fail-over configurations. Reducing the lease time can be a +# problem is some clients connect over high latency networks. +# The default is 90 seconds. A number like 15 might be appropriate +# in a fail-over configuration with all clients on well connected +# low latency links. +NFSV4LEASETIME=""