[SCM] Samba Shared Repository - branch v3-2-test updated -
jra at samba.org
Sun Dec 23 00:42:12 GMT 2007
On Sat, Dec 22, 2007 at 04:30:49PM -0800, Jeremy Allison wrote:
> On Sat, Dec 22, 2007 at 04:11:14PM -0600, James Peach wrote:
> > Cache the underlying filesystem capabilities at connection time.
> > This change alters the Samba connection code to cache the filesystem
> > capabilities when a new client connects. This can be used to enable
> > filesystem specific optimisations is a general manner.
> James, once you've determined the filesystem capabilities
> for the share, if they're found to be case insensitive and
> case preserving, then it needs to override these settings
> in the connection struct.
> bool case_sensitive;
> bool case_preserve;
> bool short_case_preserve;
> If you do this then the unix_convert() function already
> has the logic to bypass case sensitive searches for pathname
> lookups that will never be found. This will massively speed
> up smbd on directories with thousands of entries when a filename
> that doesn't exist is looked up.
Alternately we need to finish the fixes in smbd/filename.c,
which I'm looking at now :-).
More information about the samba-technical