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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Sun, 17 Dec 2006 16:05:29 EST


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

Modified Files:
	cm_conn.c cm_conn.h cm_vnodeops.c cm_vnodeops.h smb.c smb3.c 
Log Message:
DELTA windows-optimize-smb-dir-search-if-no-wildcard-20061217
AUTHOR asanka@secure-endpoints.com

When performing a SMB FindFirst/FindNext/FindClose operation if there
are no wildcards involved, we can optimize the case and turn it from 
O(n) to O(1) where 'n' is the number of entries in the directory. 
This can be done by performing a cm_Lookup() and if it succeeds, 
constructing the appropriate response instead of parsing the contents
of each buffer associated with the directory looking for matches.

Without this optimization, FindFirst operations on directories containing
thousands of entries can take a large number of seconds to complete.



--- DELTA config follows ---
windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_conn.c 1.59 1.60
windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_conn.h 1.17 1.18
windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_vnodeops.c 1.88 1.89
windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_vnodeops.h 1.17 1.18
windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/smb.c 1.146 1.147
windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/smb3.c 1.120 1.121