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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Sun, 17 Dec 2006 16:07:24 EST


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

Modified Files:
      Tag: openafs-devel-1_5_x
	cm_conn.c cm_conn.h cm_vnodeops.c cm_vnodeops.h smb.c smb3.c 
Log Message:
DELTA DEVEL15-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 for openafs-devel-1_5_x follows ---
DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_conn.c 1.49.2.9 1.49.2.10
DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_conn.h 1.13.4.4 1.13.4.5
DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_vnodeops.c 1.69.2.18 1.69.2.19
DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/cm_vnodeops.h 1.14.4.3 1.14.4.4
DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/smb.c 1.118.2.27 1.118.2.28
DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061217 openafs/src/WINNT/afsd/smb3.c 1.95.2.24 1.95.2.25