[Samba] 2.2.7a - lot of open/close calls
Jon Niehof
jniehof at paladigm.com
Fri Feb 21 15:00:55 GMT 2003
> I'me trying to track down a performance problem as I posted yesterday and
> as I increase the log level I've noticed this...
>
> [2003/02/21 08:19:06, 2] smbd/open.c:open_file(245)
> dm389245 opened file mr00257.bat read=Yes write=No (numopen=1)
> [2003/02/21 08:19:06, 2] smbd/close.c:close_normal_file(213)
> dm389245 closed file mr00257.bat (numopen=0)
>
> why does samba open and close the file so many times? this is the login
> script file it is opening btw....
*Samba* is not opening and closing the file that many times;
the client side is. COMMAND.COM and cmd both process batch
files "one line at a time"; I haven't tested this but I
suspect cmd opens the file, reads a line, closes the file,
executes the line.
You can check this for yourself from the Windows side with
filemon: http://www.sysinternals.com/ntw2k/source/filemon.shtml
More information about the samba
mailing list