summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfsclient/nfsmount.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2010-01-31 19:12:24 +0000
committerrmacklem <rmacklem@FreeBSD.org>2010-01-31 19:12:24 +0000
commitf54e0fab4c381ffac266474cd866b849f62dce62 (patch)
tree131c0903972f5f8b8a070bdac8402026960e814a /sys/fs/nfsclient/nfsmount.h
parent39978ea638ae4b16b5943056c923832cfcd520bd (diff)
downloadFreeBSD-src-f54e0fab4c381ffac266474cd866b849f62dce62.zip
FreeBSD-src-f54e0fab4c381ffac266474cd866b849f62dce62.tar.gz
Patch the experimental NFS client so that there is a timeout
for negative name cache entries in a manner analogous to r202767 for the regular NFS client. Also, make the code in nfs_lookup() compatible with that of the regular client and replace the sysctl variable that enabled negative name caching with the mount point option. MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfsclient/nfsmount.h')
-rw-r--r--sys/fs/nfsclient/nfsmount.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/fs/nfsclient/nfsmount.h b/sys/fs/nfsclient/nfsmount.h
index 2f0ada6..9fd9331 100644
--- a/sys/fs/nfsclient/nfsmount.h
+++ b/sys/fs/nfsclient/nfsmount.h
@@ -69,6 +69,7 @@ struct nfsmount {
u_int64_t nm_maxfilesize; /* maximum file size */
int nm_tprintf_initial_delay; /* initial delay */
int nm_tprintf_delay; /* interval for messages */
+ int nm_negnametimeo; /* timeout for -ve entries (sec) */
/* Newnfs additions */
struct nfsclclient *nm_clp;
@@ -99,6 +100,10 @@ struct nfsmount {
*/
#define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data))
+#ifndef NFS_DEFAULT_NEGNAMETIMEO
+#define NFS_DEFAULT_NEGNAMETIMEO 60
+#endif
+
#endif /* _KERNEL */
#endif /* _NFSCLIENT_NFSMOUNT_H_ */
OpenPOWER on IntegriCloud