How to hide filesystems

All your general support questions for OpenZFS on OS X.

How to hide filesystems

Postby jojo45 » Thu Aug 24, 2017 5:00 pm

Can anyone offer any advice on how to hide filesytems and prevent them from being displayed in the finder when you view the Mac under "Devices"?

My filesystem structure is:

tank1
tank1/filesystem1
tank1/filesystem2
tank1/filesystem3
tank1/filesystem3/filesystem4
tank1/filesystem5
tank1/filesytem5/filesystem6
tank1/filesystem5/filesystem6/filesystem7
etc.

When I click my "Mac" icon under devices, it lists all physical devices, plus each of the filesystems, including the nested filesytems.
The finder would display:

Network
MacOS
tank1
filesystem1
filesystem2
filesystem3
filesystem4
fielsystem5
filesystem6
filesystem7

As I have about 50 filesystems, it makes it hard to find what I need sometimes.
I only want the root filesystem to be displayed. In this case, it would be "tank1". I do not want the nested filesystems to be displayed.

Any suggestions on how I would get this to work? I have fiddled with the various settings under Finder preferences ,and it doesn't solve the problem.

Oddly enough, if I perform a zfs send/receive to back up the entire filesystem structure recursively to another mac, this problem goes away. Only the root filesystem is displayed on that backup mac.

Why would it behave differently under the two scenarios?

Weird.
jojo45
 
Posts: 18
Joined: Sat Apr 08, 2017 6:04 am

Re: How to hide filesystems

Postby abc123 » Thu Aug 24, 2017 9:54 pm

I believe if you set com.apple.browse=off for the datasets you don't want to see, then they won't be visible in Finder. However another side effect is that Spotlight won't work for those datasets either.

See the man page for details of the property.
abc123
 
Posts: 63
Joined: Mon Jan 30, 2017 11:46 pm


Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 31 guests