Page 1 of 1

OSX case sensitivity "reporting" issue when using mimic_hfs

PostPosted: Thu Nov 30, 2017 6:10 am
by Double K
O3X 1.6.1 on macOS Sierra 10.12.6 on Mac Pro (2013)

zpool create with -O casesensitivity=insensitive
zfs get shows dataset with casesensitivity set to insensitive
OS "Get Info" shows Format: ZFS Dataset

If I then do
zfs set com.apple.mimic_hfs=on datasetname
OS "Get Info" shows Format: Mac OS Extended (Case-sensitive)

Something in the OS is ignoring casesensitivity=insensitive when com.apple.mimic_hfs=on

Note that I mark this as a "reporting" issue, because creation of a second folder/file with the same name in different case successfully fails. (ie. Create "Test":works, then Create "test":fails = success! for dataset with casesensitivity=insensitive)

EDIT: This may be related: https://github.com/openzfsonosx/zfs/issues/321

Re: OSX case sensitivity "reporting" issue when using mimic_

PostPosted: Thu Nov 30, 2017 5:17 pm
by lundman
It could be related to that we use subtype to signal that we really are ZFS when lying about hfs (userland zfs tools need to know)

https://github.com/openzfsonosx/zfs/blo ... ps.c#L2739

So, we never set the correct subtype based on case sensitivity.

Re: OSX case sensitivity "reporting" issue when using mimic_

PostPosted: Fri Dec 01, 2017 12:06 am
by abc123
I wonder if this is related to the issue discussed here: viewtopic.php?f=26&t=2911

I don't think I had mimic_hfs set when I saw this issue but can't be sure. I moved Dropbox back to HFS so can't investigate again now.