openzfsonosx / zfs

OpenZFS on OS X

Home Page:https://openzfsonosx.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Value of com.apple.ignoreowner=on/off in correspondence with MacOS Volume's Owners=Disabled/Enabled

captain-haddock17 opened this issue · comments

Dear ZFS on OSX !

Short story
MacOS has a particular Volume property named Owners=Enabled/Disabled.
see diskutil info disk#.#

I observed that Legacy/regular rules for this property are depending (by default) on type of Disk (not Volume):

  • Internal storage : Owners=Enabled
  • External storage : Owners=Disabled

Second rule on Volumes for external storages:

  • APFS formatted volume : Through Cmd+ I you can toggle this to Enabled/Disabled ("Ignore ownership on this volume")
  • JHFS+ formatted volume : Through Cmd+ I you can NOT toggle (there isn't any "Ignore ownership on this volume"), by default it is `Owners=Disabled``

with ZFS v1.9.4 , ZVOL formatted APFS or JHFS+ are seen as External disks (see also #761).
with Owners=Disabled whatever the value of com.apple.ignoreowner.

RFC: wouldn't it be effective to have ZFS's com.apple.ignoreowner=on/off correlated to Owners=Enabled ?

Other considerations

see also #752 about HomeDirectory that (seems) has to be

  • on an internal disk,
  • with Owners=Enabled property.

As of ZFS v1.9.4, I can not achieve this on ZVOL formatted APFS or JHFS+, because it is seen as External , and MacOS sees this as Owners=Disabled whatever the value of com.apple.ignoreowner.

Thanks a lot, William