]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-local-directory-updates-smb-20070802
authorAsanka Herath <asanka@secure-endpoints.com>
Thu, 2 Aug 2007 22:06:39 +0000 (22:06 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 2 Aug 2007 22:06:39 +0000 (22:06 +0000)
commit5d4f74d06f25fb690cbd26aa9df1db26c182496c
treeca603bce3378b7c14fb4f9550d9a223e20a4e05e
parente388222c89177621ff57a6ac3f84372f003ecf78
DEVEL15-windows-local-directory-updates-smb-20070802

The windows cache manager has suffered from poor performance as a result
of Create, Rename, and Delete operations because they invalidate the
contents of the directory pages in the cache thereby forcing them to be
reloaded from the file server.   As the directory size increases, the clock
time necessary to perform the reload increases.

This delta adds support for parsing and updating the AFS3 directory buffers
to cm_dir.c.  It then uses that functionality to perform local updates to
the directory buffers whenever the following conditions are met:

 1. the data version on the directory as a result of the change
    was incremented by one.

 2. all of the directory buffers required for the update are in
    the cache.

If these conditions are not met, the directory is reloaded from the file
server.

(cherry picked from commit 9353e122a33044df752e61de95f155f63876f0a2)
src/WINNT/afsd/smb.c