To support spotlight, a filesystem needs to be MNT_LOCAL and !MNT_NOBROWSE. At
the moment, only the root of a filesystem is set up without MNT_NOBROWSE; the
children have MNT_NOBROWSE put on in zfs_vnops.c
Instead of compiling in one way or another, and given the (current) lack of
pool properties, we should instead use sysctl to enact one way or another what
should be done here, like we do with 'debug.maczfs.stalk'
SYSCTL_INT(_debug_maczfs, OID_AUTO, stalk, (CTLTYPE_INT | CTLFLAG_RW |
CTLFLAG_ANYBODY ), &k_maczfs_debug_stalk, 0, "enable stalk-printf logging");
sysctl_register_oid(&sysctl__debug_maczfs);
sysctl_register_oid(&sysctl__debug_maczfs_stalk);
Note that it would be preferable to have a top-level 'maczfs' sysctl group
instead; it was placed under _debug for convenience when this was rolled out.
Original issue reported on code.google.com by alex.ble...@gmail.com on 21 Jan 2011 at 9:37
Original issue reported on code.google.com by
alex.ble...@gmail.com
on 21 Jan 2011 at 9:37