OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Tue, 16 Sep 2008 07:52:59 EDT


Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-kdfs/src/WINNT/afsd

Modified Files:
      Tag: openafs-windows-kdfs-ifs-branch
	cm.h cm_dir.c cm_memmap.h cm_scache.c cm_scache.h 
Log Message:
DELTA KDFS-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 for openafs-windows-kdfs-ifs-branch follows ---
KDFS-windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm.h 1.31.2.4 1.31.2.5
KDFS-windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_dir.c 1.19.2.4 1.19.2.5
KDFS-windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_memmap.h 1.11.2.4 1.11.2.5
KDFS-windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_scache.c 1.105.2.19 1.105.2.20
KDFS-windows-local-dir-updates-20080916 openafs/src/WINNT/afsd/cm_scache.h 1.46.2.4 1.46.2.5