find_first2 lookup behaviour on Samba with a case Insensitive FS

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

2008/5/28 David Disseldorp <ddiss at>:
> On Wed, 28 May 2008 21:09:32 -0700
> "James Peach" <jorgar at> 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?


>> <>
>> <>
> 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

More information about the samba-technical mailing list