find_first2 lookup behaviour on Samba with a case Insensitive FS

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

2008/5/29 David Disseldorp <ddiss at>:
> On Wed, 28 May 2008 23:07:22 -0700
> "James Peach" <jorgar at> wrote:
>> <>
> 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

More information about the samba-technical mailing list