Skip to contentSkip to conversation

umount: add -R, --recursive option

PATCH In review Dave Reisner 2 participants 2 messages Nov 7, 2012 – Nov 13, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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.

---
 sys-utils/umount.8 |  4 +++
 sys-utils/umount.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 81 insertions(+), 4 deletions(-)
sys-utils/umount.8 +4 -0
index bdd10a5..b8d4358 100644
@@ -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
maintainer
#1 lore raw
Quoted 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