]> git.ipfire.org Git - thirdparty/util-linux.git/commit
umount: add --all-targets
authorKarel Zak <kzak@redhat.com>
Tue, 26 Feb 2013 13:50:26 +0000 (14:50 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 26 Feb 2013 13:50:26 +0000 (14:50 +0100)
commit4eb49f63920d4b32e9da8995618caacb29517ac3
tree6105fe7e1041b2b8b643d18f16bb0c0980ed8852
parent6506a866014f65516c1d5f1aaa0849f8c59aa387
umount: add --all-targets

The same source (whole filesystem or filesystems subvolume) could be
mounted on more targets (mountpoints). For example bind mounts or
btrfs sub-volumes.

If you want to detach the source device from the system then you need
to unmount all the mountpoints.

 umount --all-targets <device|mountpoint>

provides this functionality. This option could be used together with
--recursive. Then all nested mountpoints within the filesystem are
unmounted too. For example:

 umount --recursive --all-targets /dev/sdb1

should be a way how to make the device unmounted at all.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/umount.8
sys-utils/umount.c