gmzang / maczfs

Automatically exported from code.google.com/p/maczfs
Other
0 stars 0 forks source link

ZFS drives shown as removable volumes in Finder #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In Leopard, a ZFS pool is shown as a removable volume, and files are shown as 
symlinks.

This is a Finder bug in 10.5, which is apparently fixed in 10.6.

Original issue reported on code.google.com by alex.ble...@gmail.com on 24 Oct 2009 at 9:38

GoogleCodeExporter commented 9 years ago
I still see the symlinks in finder.  I'm not sure what advice to offer it.

Original comment by dsalli...@gmail.com on 25 Oct 2009 at 8:26

GoogleCodeExporter commented 9 years ago
I don't think there's anything we can do - it's a MacOSX thing. It's really 
here to record it as a known issue. 
You never know, someone might be able to suggest some advice. After all, the 
MacFUSE stuff shows icons for 
its mounted volumes - perhaps we can take thoughts from that?

http://code.google.com/p/macfuse/wiki/CUSTOM_VOLUME_ICON

Original comment by alex.ble...@gmail.com on 25 Oct 2009 at 9:26

GoogleCodeExporter commented 9 years ago
This applies to Snow Leopard as well. 

Original comment by alex.ble...@gmail.com on 20 Jul 2010 at 12:11

GoogleCodeExporter commented 9 years ago
I think we need something like:

vfs_setflags(mp, (u_int64_t)((unsigned int)MNT_LOCAL));

when we know it's non-removable. Diskutil info /dev/disk0 gives back 
'Ejectable: no' so we could assume that any folder on /dev/disk0s* would also 
be unejectable. I wonder whether we want to do this for all folders though. We 
can probably do this in zfs_vfs_mount in usr/src/uts/common/fs/zfs/zfs_vfsops.c 
- see the MNT_DONTBROWSE option (which I suspect means that filesystems aren't 
shown in the finder)

Original comment by alex.ble...@gmail.com on 20 Jul 2010 at 1:01