summaryrefslogtreecommitdiffstats
path: root/sys-utils/umount.8
diff options
context:
space:
mode:
authorKarel Zak2016-08-30 10:25:44 +0200
committerKarel Zak2016-08-30 10:25:44 +0200
commitd00eb87ba284635e72b10880dfcf409276fa41b0 (patch)
tree7e16d7e4f1b7601201440337257651588f2119f2 /sys-utils/umount.8
parentlibblkid: Avoid OOB access on illegal ZFS superblocks (diff)
downloadkernel-qcow2-util-linux-d00eb87ba284635e72b10880dfcf409276fa41b0.tar.gz
kernel-qcow2-util-linux-d00eb87ba284635e72b10880dfcf409276fa41b0.tar.xz
kernel-qcow2-util-linux-d00eb87ba284635e72b10880dfcf409276fa41b0.zip
umount: fix obsolete info about loop= in umount.8
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1370959 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/umount.8')
-rw-r--r--sys-utils/umount.818
1 files changed, 11 insertions, 7 deletions
diff --git a/sys-utils/umount.8 b/sys-utils/umount.8
index ac22c879d..caef3b048 100644
--- a/sys-utils/umount.8
+++ b/sys-utils/umount.8
@@ -80,7 +80,9 @@ helpers.
.TP
.BR \-d , " \-\-detach\-loop"
When the unmounted device was a loop device, also free this loop
-device.
+device. This option is unnecessary for devices initialized by
+.BR mount (8),
+in this case "autoclear" functionality is enabled by default.
.TP
.B \-\-fake
Causes everything to be done except for the actual system call or umount helper
@@ -156,12 +158,14 @@ Display help text and exit.
.SH "LOOP DEVICE"
The
.B umount
-command will free the loop device associated with a mount when
-it finds the option \fBloop=...\fR in
-.IR /etc/mtab ,
-or when the \fB\-d\fR option was given. Any still associated loop devices
-can be freed by using \fBlosetup -d\fR; see
-.BR losetup (8).
+command will automatically detach loop device previously initialized by
+.BR mount (8)
+command independently of /etc/mtab.
+
+In this case the device is initialized with "autoclear" flag (see
+.BR losetup (8)
+output for more details), otherwise it's necessary to use the option \fB \-\-detach\-loop\fR
+or call \fBlosetup -d <device>\fR. The autoclear feature is supported since Linux 2.6.25.
.SH EXTERNAL HELPERS
The syntax of external unmount helpers is:
.PP