[SCM] Samba Shared Repository - branch v3-2-test updated -
jpeach at samba.org
Sun Dec 23 01:14:22 GMT 2007
On 22/12/2007, at 4:51 PM, Jeremy Allison wrote:
> On Sat, Dec 22, 2007 at 04:42:12PM -0800, Jeremy Allison wrote:
>> 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
>>>> capabilities when a new client connects. This can be used to
>>>> 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 :-).
> Here is the proposed patch. James please review.
this looks fine to me
James Peach | jpeach at samba.org
More information about the samba-technical