The attached patch adds a -d option to umount(8) to detach a memory device like mdconfig(8) does. A similar option exists in Linux's umount(8). Fix: To apply this patch, run: patch -d /usr < /path/to/patch cd /usr/src/sbin/umount make clean obj depend && make && make install Patch attached with submission follows:
Responsible Changed From-To: freebsd-bugs->freebsd-fs Over to maintainers.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
This could be useful.. I've been thinking about a more generic "close on unmount" flag settable on md mounts as a "proper" fix to some other problems I'm having with autofs and md disks... But I'm still working on some ideas and code which I will eventually send for review. Only really commenting here now in case others are interested too...
The patch cannot be merged in its current form and since nobody picked up PR for a long time I am closing it as "Rejected". Feel free to reopen if there are any plans for finishing and committing the patch. for new approaches to this problem please open new PR or submit review to Phabricator.
Closed but not fixed. Added a PR here: https://github.com/freebsd/freebsd-src/pull/972