]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-afsd-freelance-20090105
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Jan 2009 16:20:20 +0000 (16:20 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Jan 2009 16:20:20 +0000 (16:20 +0000)
commit0ebd363f1a53fc98338ea2ca13984ccc3370b7c7
tree61fecb7feec3e49a4d6804c2de71fbc386710e28
parentf48ad2f73765dec9df6bab89c3356b1a6e967f19
DEVEL15-windows-afsd-freelance-20090105

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.

(cherry picked from commit 8c4b06a5b62a07d4d6733b313ad404e1cb6abe8d)
src/WINNT/afsd/afsd.h
src/WINNT/afsd/cm_callback.c
src/WINNT/afsd/cm_freelance.c
src/WINNT/afsd/cm_freelance.h
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_vnodeops.c