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

cvs@penn.central.org cvs@penn.central.org
Sat, 10 Feb 2001 15:46:18 EST


Update of /usr1/cvs/openafs/src/WINNT/afsd
In directory penn.central.org:/usr0/build/openafs/openafs/src/WINNT/afsd

Modified Files:
	smb3.c 
Log Message:
DELTA winnt-directory-scan-memory-leak-20010210
AUTHOR jimpeter@us.ibm.com
"Problem:
During a directory scan W2K does not send the FindClose the way NT does.
When smb_ReceiveTran2SearchDir() processes FindFirst or FindNext, the
termination Flags is never set either (close search if end of search).
Since these operations don't occur smb_DeleteDirSearch() is never called;
therefore the dsp (smb_dirSearch_t) is never freed.

This problem was reproducible while trying to scan a directory (e.g. dir
*.c/s) with symbolic links.

When smb_ReceiveTran2SearchDir() processes FindFirst or FindNext the last
SMB call in a session can be indicated by checking for no more files
(filesnames==0).

Running a directory scan (DOS window) and file cache size of 5 MB:
   With the memory leak patch, the program grew upto the limit of +5.3MB.
   Without the patch, the program will grew +27MB before the operation was
   finished, then became unstable."


--- DELTA config follows ---
winnt-directory-scan-memory-leak-20010210 openafs/src/WINNT/afsd/smb3.c 1.2 1.3