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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Fri, 22 Feb 2008 19:15:24 EST


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

Modified Files:
	afsd_init.c cm_access.c cm_btree.c cm_buf.c cm_buf.h 
	cm_callback.c cm_dcache.c cm_dcache.h cm_dir.c cm_freelance.c 
	cm_ioctl.c cm_memmap.h cm_scache.c cm_scache.h cm_server.c 
	cm_vnodeops.c cm_volume.c rawops.c smb.c smb.h smb3.c 
Log Message:
DELTA windows-afsd-20080222
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

1. Change RxEnableHotThread default to 'on'

2. Add a 'hash' value to the cm_fid_t structure in order to speed up cm_FidCmp().
   Add cm_SetFid() for use in constructing a fid complete with the hash.

3. Redefine the BUF_HASH and BUF_FILEHASH in terms of the cm_fid_t hash which
   has a better distribution

4. Modify cm_ConsiderPrefetch to evaluate the amount of data in the most recent
   read request instead of the next chunkSize.  cm_chunkSize can be dozens or
   hundreds of buffers.  As a result too much time is spent performing the 
   evaluation.  

5. Fix the usage of cm_scache_t bufCreateLock.  The purpose of this lock is 
   to prevent the creation of new buffers while a truncation is being performed.
   All references to bufCreateLock have been removed except in two places:
   i.  a write-lock surrounding the function that calls buf_Truncate()
   ii. a read-lock within buf_GetNewLocked() that actually allocates new
       buffers

6. Modify the CM_CONFIG_DATA_MAGIC value to include a CM_CONFIG_DATA_VERSION
   number which value be used to force the replacement of the cache file
   contents when incompatible changes are made between releases.

7. CM_SCACHESYNC_ASYNCSTORE should not be ordered by cm_SyncOpCheckContinue

8. Avoid calls to multi_Rx if nconns == 0

9. Modify smb_WriteData to perform background writes based upon the crossing
   of buf_blockSize boundaries instead of cm_chunkSize boundaries.  This will
   slow down writes from the SMB interface but will avoid the risk of 
   the CIFS client disconnecting from the AFS client SMB server.



--- DELTA config follows ---
windows-afsd-20080222 openafs/src/WINNT/afsd/afsd_init.c 1.109 1.110
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_access.c 1.23 1.24
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_btree.c 1.12 1.13
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_buf.c 1.57 1.58
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_buf.h 1.21 1.22
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_callback.c 1.75 1.76
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_dcache.c 1.56 1.57
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_dcache.h 1.8 1.9
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_dir.c 1.15 1.16
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_freelance.c 1.40 1.41
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_ioctl.c 1.109 1.110
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_memmap.h 1.9 1.10
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_scache.c 1.94 1.95
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_scache.h 1.41 1.42
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_server.c 1.50 1.51
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_vnodeops.c 1.130 1.131
windows-afsd-20080222 openafs/src/WINNT/afsd/cm_volume.c 1.44 1.45
windows-afsd-20080222 openafs/src/WINNT/afsd/rawops.c 1.6 1.7
windows-afsd-20080222 openafs/src/WINNT/afsd/smb.c 1.182 1.183
windows-afsd-20080222 openafs/src/WINNT/afsd/smb.h 1.66 1.67
windows-afsd-20080222 openafs/src/WINNT/afsd/smb3.c 1.150 1.151