KIP, Powerprint Request software -samba

Jeremy Allison jra at samba.org
Fri Aug 13 17:19:20 GMT 2004


On Fri, Aug 13, 2004 at 11:43:10AM +0200, Martin Zielinski wrote:
> 
> That's not the problem. Even the directory listing from Windows, using the 
> explorer is fast. 
> I'm not so deep in Windows API, but the slow-down effect using the Powerprint 
> application is caused by treating the request (samba calls it 
> "trans2findfirst") as a request using a wildcard.
> Maybe the correct behaviour to get the file info would be a different call 
> from the Windows API - but I don't know.
> 
> Samba creates a directory listing for each file request with 
> "dptr_create(...)" to find a match between the file and the directory 
> content. 
> 
> I think, the way to fix this behaviour ist to detect, that the file name is 
> NOT a wildcard but a valid file name. Checking, if we can get an excact match 
> on the pattern, and - if so - skip the directory listing could be the trick. 
> 
> But I'm not deep enaugh in Samba to be really shure about that or even able to 
> test it by hacking Samba :-(

Ah - great ! That's wonderful debugging. This is an optimisation I've
been thinking of for a while. Can you get me the ethereal capture
trace of this and a debug level 10 log ? It should be easy to fix
this particular case !

Jeremy.


More information about the samba-technical mailing list