diff options
author | jhb <jhb@FreeBSD.org> | 2009-02-19 22:28:48 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-02-19 22:28:48 +0000 |
commit | 5dc7ef7e69e7552a62f396a484740c12642918df (patch) | |
tree | 789787a3459d38eece091c20561b1d47a4875bec /release | |
parent | 508874f4299bd6840631dde45b0eb6bc8b29a3d9 (diff) | |
download | FreeBSD-src-5dc7ef7e69e7552a62f396a484740c12642918df.zip FreeBSD-src-5dc7ef7e69e7552a62f396a484740c12642918df.tar.gz |
Enable caching of negative pathname lookups in the NFS client. To avoid
stale entries, we save a copy of the directory's modification time when
the first negative cache entry was added in the directory's NFS node.
When a negative cache entry is hit during a pathname lookup, the parent
directory's modification time is checked. If it has changed, all of the
negative cache entries for that parent are purged and the lookup falls
back to using the RPC. This required adding a new cache_purge_negative()
method to the name cache to purge only negative cache entries for a given
directory.
Submitted by: mohans, Rick Macklem, Ricardo Labiaga @ NetApp
Reviewed by: mohans
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions