umount: add -R, --recursive option
PATCH 1/1 umount: add -R, --recursive option
This allows unmounting of an entire tree of filesystems, which might be of particular interest for a shutdown initramfs.
Signed-off-by Dave Reisner <[email protected]>
--- sys-utils/umount.8 | 4 +++ sys-utils/umount.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 81 insertions(+), 4 deletions(-)
sys-utils/umount.8 +4 -0
@@ -109,6 +109,10 @@ Each option can be prefixed with .B no to specify options for which no action should be taken. .TP +\fB\-R\fR, \fB\-\-recursive\fR +Recursively unmount each directory specified. Recursion for each directory will +stop if any unmount operation in the chain fails for any reason. +.TP \fB\-r\fR, \fB\-\-read\-only\fR In case unmounting fails, try to remount read-only. .TP
sys-utils/umount.c +77 -4
119 lines not on this page · raw message
Signature · 1 line
1.8.0
Karel Zak
maintainerQuoted 3 lines · Dave Reisner
sys-utils/umount.8 | 4 +++ sys-utils/umount.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 81 insertions(+), 4 deletions(-)
Applied (with some small changes), thanks!
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com