]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
umount: fix obsolete info about loop= in umount.8
authorKarel Zak <kzak@redhat.com>
Tue, 30 Aug 2016 08:25:44 +0000 (10:25 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2016 09:07:33 +0000 (11:07 +0200)
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1370959
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/umount.8

index ac22c879d91d2d45b400416d95a74c4eb24a5ea3..caef3b04855cd00bd8ea7b0903e68a62f6a32698 100644 (file)
@@ -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