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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 05 Jan 2009 11:20:08 EST


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

Modified Files:
	afsd.h cm_callback.c cm_freelance.c cm_freelance.h cm_scache.c 
	cm_vnodeops.c 
Log Message:
DELTA windows-afsd-freelance-20090105
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

Bring a bit more sanity to the Freelance code:

1. Add functions cm_FreelanceFetchMountPointString and
   cm_FreelanceFetchFileType to cm_freelance.c.  These functions
   permit the MountPointString and FileType to be obtained within
   cm_GetSCache without requiring knowledge of data structures
   that should be private to cm_freelance.c

2. Enforce the rule that odd vnode values are directory objects.
   The root directory is 1 and everything else must be a multiple
   of two.

3. Use the unique field as an index into the localMountPoints
   array.

4. Fix cm_GetCallback to process freelance data refreshes on
   all objects in the freelance volume not just the root directory.
   If this is not done, an access to \\afs\foo prior to \\afs\all
   being evaluated will cause an unnecessary attempt to send a
   fetch status request to a file server and produce an alldown
   error.



--- DELTA config follows ---
windows-afsd-freelance-20090105 openafs/src/WINNT/afsd/afsd.h 1.30 1.31
windows-afsd-freelance-20090105 openafs/src/WINNT/afsd/cm_callback.c 1.93 1.94
windows-afsd-freelance-20090105 openafs/src/WINNT/afsd/cm_freelance.c 1.50 1.51
windows-afsd-freelance-20090105 openafs/src/WINNT/afsd/cm_freelance.h 1.14 1.15
windows-afsd-freelance-20090105 openafs/src/WINNT/afsd/cm_scache.c 1.124 1.125
windows-afsd-freelance-20090105 openafs/src/WINNT/afsd/cm_vnodeops.c 1.163 1.164