find_first2 lookup behaviour on Samba with a case Insensitive FS

Jeremy Allison jra at samba.org
Thu May 29 04:32:56 GMT 2008


On Wed, May 28, 2008 at 09:09:32PM -0700, James Peach wrote:
> 
> 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.
> 
> <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>

For SMB_VFS_GET_PRESERVED_NAME, this really needs to take
a char ** that is allocated on return. Remember pstrings no
longer exist in 3.2.

What does the underlying interface into the OS look like ?
Does it allocate, or do you pass in a max length ?

Jeremy.


More information about the samba-technical mailing list