Page 1 of 1

Disable Finder browsing of zpool?

PostPosted: Sun Jan 03, 2016 7:13 pm
by jjlawren
I am using my Mac as a backup host for an Illumos-based server, saving ZFS snapshots on external hard drives. However, I'd like to avoid Finder trying to browse the files. Is there a way to do this cleanly?

Re: Disable Finder browsing of zpool?

PostPosted: Mon Jan 04, 2016 2:15 pm
by jjlawren
By trial and error, I found the 'com.apple.browse' ZFS property which seems to do something similar to what I want. Is this documented anywhere on the wiki?

Re: Disable Finder browsing of zpool?

PostPosted: Tue Jan 05, 2016 4:31 am
by ilovezfs
No, but it is in the zfs man page. It ought to be added to the wiki, too, especially the bit about how it breaks Spotlight.

Code: Select all
       com.apple.browse=on | off

           Equivalent to mount option browse/nobrowse. This  option  indicates
           that  the  mount  point  should  not  be visible via the GUI (i.e.,
           appear on the Desktop as a separate volume). Setting it to off will
           result  in  Spotlight  being  unavailable  for  the specified mount
           point.


https://github.com/openzfsonosx/zfs/issues/380
https://github.com/openzfsonosx/zfs/pull/427