MNT_DONTBROWSE with FSMountServerVolumeSync
MNT_DONTBROWSE with FSMountServerVolumeSync
- Subject: MNT_DONTBROWSE with FSMountServerVolumeSync
- From: Benjamin Rister <email@hidden>
- Date: Thu, 16 Dec 2010 16:35:19 -0500
We have daemon processes, running as root, that need to mount network shares and do stuff with the contents. Unfortunately, this results in user’s Desktops being littered with a bunch of unreadable, unusable “folders,” which annoys them. As they’re implementation details, and unusable by the users anyway, we would like these mounted network shares to not appear in the user’s interface. The MNT_DONTBROWSE/nobrowse mounting options appear designed for exactly this situation.
The problem is that we’re using FSMountServerVolumeSync to do the mounting, and are quite happy with the level of detail of this API. There’s a tantalizing OptionBits flags field in the signature, but it unfortunately doesn’t have any documented values, though it would be a great place for these kinds of mount flags to be passed.
Dropping down to the mount(2) syscall to use MNT_DONTBROWSE sounds like a world of pain, as these are user-configured servers and whatnot and we enjoy letting the OS figure out what the proper protocol and parameters are, and not having to specifically add support for AFP, SMB, etc. individually. (Exactly how it works with these kinds of network shares also seems rather undocumented.) And spawning mount(8) processes with nobrowse not only seems inefficient and “doing it wrong," but also makes managing the result problematic without having actual return values to work with.
Can any gurus recommend the best course of action here?
Best,
br _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden