Bug 114468 - [patch] [request] add -d option to umount(8) to detach md(4) device
Summary: [patch] [request] add -d option to umount(8) to detach md(4) device
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 6.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 06:20 UTC by Ighighi
Modified: 2023-12-31 16:03 UTC (History)
3 users (show)

See Also:


Attachments
file.txt (4.16 KB, text/plain)
2007-07-10 06:20 UTC, Ighighi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ighighi 2007-07-10 06:20:02 UTC
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:
Comment 1 Robert Watson freebsd_committer freebsd_triage 2008-03-09 13:08:08 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainers.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:10 UTC
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
Comment 3 Jamie Landeg-Jones 2018-02-10 19:18:13 UTC
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...
Comment 4 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-26 07:19:44 UTC
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.
Comment 5 Ricardo Branco 2023-12-31 16:03:49 UTC
Closed but not fixed.

Added a PR here: https://github.com/freebsd/freebsd-src/pull/972