- 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
This commit is contained in:
Neil Brown 2011-06-02 06:49:18 +00:00 committed by Git OBS Bridge
parent a15cfb5f31
commit 10e67953e3
3 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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=""