diff options
author | John Baldwin <jhb@FreeBSD.org> | 2012-01-25 20:05:58 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2012-01-25 20:05:58 +0000 |
commit | 0b17c7bea5af484645bffe02c7d94fa379292027 (patch) | |
tree | 5f8bcbc509dcfba24c232996c7826a9b95d20dca /sbin/mount_nfs/mount_nfs.8 | |
parent | 07dbb387633186ee8350bf69e627492838f2d763 (diff) | |
download | src-0b17c7bea5af484645bffe02c7d94fa379292027.tar.gz src-0b17c7bea5af484645bffe02c7d94fa379292027.zip |
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
Notes
Notes:
svn path=/head/; revision=230547
Diffstat (limited to 'sbin/mount_nfs/mount_nfs.8')
-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 bdb0707a46d5..b1b5c6e21cfc 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 |