Question about T2FindFirst

MVM RAJU mvm_raju_1986 at yahoo.co.in
Fri May 7 21:53:57 GMT 2004


In T2FindFirst implementation, I noticed Samba doing a
stat() before doing opendir()/closedir(), when stat()
succeeds for requested unique entry, irrespective of
case sensitivity setting it can use stat result to
compose reply, right?

-Raju

 --- Jeremy Allison <jra at samba.org> wrote: > On Fri,
May 07, 2004 at 10:36:55PM +0100, MVM RAJU
> wrote:
> > I have a question about T2FindFirst
> implementation,
> > when Samba receives a T2FindFirst request
> > WITHOUT wildcard pattern, it retrieves all the
> > directory entries using opendir()/readdir() 
> > before it replies to the request, any specific
> reason
> > for this?
> 
> If we're acting in a case-insensitve way, we ave to
> do this as we can't know what case the incoming
> value
> matches. If case-sensitive we don't have to do this
> and
> can just do a stat() instead. This is an
> optimisation
> I'll be adding into 3.0.5 and above.
> 
> Jeremy. 

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/


More information about the samba-technical mailing list