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.
Comment #1
Posted on Mar 19, 2011 by Quick Rabbit(No comment was entered for this change.)
Status: WontFix
Labels:
Type-Defect
Priority-Medium