summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-03-20 21:12:38 +0000
committerjhb <jhb@FreeBSD.org>2009-03-20 21:12:38 +0000
commit79aaac6e7b4553e4799500d20a8d63ea337b8925 (patch)
treedeb7778d132a1e3e54c04c506baa768ad0e61400 /sys/nfsclient/nfs.h
parent5dee97ce8610e3adf8c9f937bd5fe961ca124c90 (diff)
downloadFreeBSD-src-79aaac6e7b4553e4799500d20a8d63ea337b8925.zip
FreeBSD-src-79aaac6e7b4553e4799500d20a8d63ea337b8925.tar.gz
Expand the per-node access cache to cache permissions for multiple users.
The number of entries in the cache defaults to 8 but is easily changed in nfsclient/nfs.h. When the cache is filled, the oldest cache entry is evicted when space is needed. I mirrored the changes to the NFSv[23] client in the NFSv4 client to fix compile breakage. However, the NFSv4 client doesn't actually use the access cache currently. Submitted by: rmacklem
Diffstat (limited to 'sys/nfsclient/nfs.h')
-rw-r--r--sys/nfsclient/nfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h
index c5b1c51..783fe07 100644
--- a/sys/nfsclient/nfs.h
+++ b/sys/nfsclient/nfs.h
@@ -68,6 +68,9 @@
#ifndef NFS_MAXDIRATTRTIMO
#define NFS_MAXDIRATTRTIMO 60
#endif
+#ifndef NFS_ACCESSCACHESIZE
+#define NFS_ACCESSCACHESIZE 8 /* Per-node access cache entries */
+#endif
#define NFS_WSIZE 8192 /* Def. write data size <= 8192 */
#define NFS_RSIZE 8192 /* Def. read data size <= 8192 */
#define NFS_READDIRSIZE 8192 /* Def. readdir size */
OpenPOWER on IntegriCloud