find_first2 lookup behaviour on Samba with a case Insensitive FS

James Peach jorgar at gmail.com
Thu May 29 06:11:01 GMT 2008


2008/5/28 David Disseldorp <ddiss at sgi.com>:
> On Wed, 28 May 2008 21:09:32 -0700
> "James Peach" <jorgar at gmail.com> wrote:
>
>> > Aside from maybe confusing users, could this behaviour cause problems
>> > for applications?
>>
>> Yes this causes problems for OSX 10.5. You need to return the
>> canonical on-disk case in all cases. There is a patch in the Apple
>> tree to do this for Darwin.
>
> You mean problems for the OSX 10.5 CIFS client?

Yes.

>> <http://www.opensource.apple.com/darwinsource/10.5.2/samba-187.4/patches/vfs-add-get-preserved-name-operation>
>> <http://www.opensource.apple.com/darwinsource/10.5.2/samba-187.4/patches/support-case-perserving-filenames>
>
> Hopefully the lookup in GET_PRESERVED_NAME() will not hurt performance
> too much. A kernel get_preserved call would be handy.

The performance impact depends on the kernel interface you use to get
the preserved name. For us it's an extra system call on every lookup.
Not ideal, but necessary.

-- 
James Peach | jorgar at gmail.com


More information about the samba-technical mailing list