gmzang / maczfs

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

Provide sysctl-driven property to manage pool mount flags #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by alex.ble...@gmail.com on 19 Mar 2011 at 8:37