diff options
author | jhb <jhb@FreeBSD.org> | 2012-01-25 20:05:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-01-25 20:05:58 +0000 |
commit | 768a468c15a95c443b29381081ac318debea4846 (patch) | |
tree | 5f8bcbc509dcfba24c232996c7826a9b95d20dca /sbin | |
parent | ee48ed5fd372f596d4901253bcca015ab3c75fcf (diff) | |
download | FreeBSD-src-768a468c15a95c443b29381081ac318debea4846.zip FreeBSD-src-768a468c15a95c443b29381081ac318debea4846.tar.gz |
Add a timeout on positive name cache entries in the NFS client. That is,
we will only trust a positive name cache entry for a specified amount of
time before falling back to a LOOKUP RPC, even if the ctime for the file
handle matches the cached copy in the name cache entry. The timeout is
configured via a new 'nametimeo' mount option and defaults to 60 seconds.
It may be set to zero to disable positive name caching entirely.
Reviewed by: rmacklem
MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.8 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/mount_nfs/mount_nfs.8 b/sbin/mount_nfs/mount_nfs.8 index bdb0707..b1b5c6e 100644 --- a/sbin/mount_nfs/mount_nfs.8 +++ b/sbin/mount_nfs/mount_nfs.8 @@ -157,6 +157,10 @@ Force the mount protocol to use UDP transport, even for TCP NFS mounts. (Necessary for some old .Bx servers.) +.It Cm nametimeo Ns = Ns Aq Ar value +Override the default of NFS_DEFAULT_NAMETIMEO for the timeout (in seconds) +for positive name cache entries. +If this is set to 0 it disables positive name caching for the mount point. .It Cm negnametimeo Ns = Ns Aq Ar value Override the default of NFS_DEFAULT_NEGNAMETIMEO for the timeout (in seconds) for negative name cache entries. If this is set to 0 it disables negative |