OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Tue, 16 Sep 2008 07:45:24 EDT
Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-head/src/WINNT/afsd
Modified Files:
cm.h cm_dir.c cm_memmap.h cm_scache.c cm_scache.h
Log Message:
DELTA windows-local-dir-updates-20080916
AUTHOR asanka@secure-endpoints.com
LICENSE MIT
When a local directory update occurs to the directory pages stored
in the dcache, there is no guarrantee that the same modifications
will be made to the cached pages as are being made by the file server.
In the situation that one or more of the cached pages are recycled,
it is not permissible to obtain the missing pages from the file server
without first invalidating the rest of the cached pages. This is
necessary to prevent mixing of incompatible data representations.
Define a new flag CM_SCACHEFLAG_LOCAL which is used to indicate that
dcache entries were locally modified even though they are not dirty.
As the previous code could have corrupted the contents of the dcache,
bump CM_CONFIG_DATA_VERSION in order to force the rebuilding of the
cache.
Add error CM_ERROR_NOTINCACHE to indicate that a requested directory
page is not present in the cache and will not be created on the fly.
Prefetch all dcache entries for directories and ensure that a consistent
set is being used.
--- DELTA config follows ---
windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm.h 1.34 1.35
windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_dir.c 1.23 1.24
windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_memmap.h 1.15 1.16
windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_scache.c 1.123 1.124
windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_scache.h 1.50 1.51