Why does continue flag slow down smbclient

Kevin Dalley kevin at kelphead.org
Thu Mar 3 21:14:47 GMT 2005


I'm look at a serious samba bug, which involves the loss of files when
taking a directory listing:

https://bugzilla.samba.org/show_bug.cgi?id=2271

Unfortunately, the suggested patch causes smbclient bloat, using up 1
or 2 GB of memory before I give up and kill the process.

I removed the backup flag from the patch, and everything works the
same.  Here is a line which causes problems, from
source/libsmb/clilist.c, samba-3.0.10:  

SSVAL(param,10,/*8+*/4+2);	/* continue + resume required + close
on end */

If I turn on the continue flag (8),  files are lost, but smbclient no
longer grows to GB size.  When I leave the flag off, all the files are
found, but the size of the running program for certain commands grows
to GB size.

What is going on, where can I look for a memory leak?

-- 
Kevin Dalley
kevin at kelphead.org


More information about the samba-technical mailing list