find_first2 lookup behaviour on Samba with a case Insensitive FS

James Peach jorgar at gmail.com
Thu May 29 16:26:29 GMT 2008


2008/5/29 David Disseldorp <ddiss at sgi.com>:
> On Wed, 28 May 2008 23:07:22 -0700
> "James Peach" <jorgar at gmail.com> wrote:
>
>> <http://www.opensource.apple.com/darwinsource/10.5.2/samba-187.4/patches/support-case-perserving-filenames>
>
> So SMB_VFS_GET_PRESERVED_NAME should only return the preserved name of
> the last component?

Yes. Protocol info levels that return the filename only return the
last component.

> If so, could there be situations where preserved name of an entire path
> needs to be obtained, or would it be the callers responsibility to iterate?

If you think about how a kernel filesystem builds its file hierarchy,
it only deals with one level at a time. This means that it always has
the correct case.

-- 
James Peach | jorgar at gmail.com


More information about the samba-technical mailing list