From fb4a9ef42c24e96be1a5f5dbdccfc87331e06851 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 30 Aug 2016 10:25:44 +0200 Subject: [PATCH] umount: fix obsolete info about loop= in umount.8 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1370959 Signed-off-by: Karel Zak --- sys-utils/umount.8 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/sys-utils/umount.8 b/sys-utils/umount.8 index ac22c879d9..caef3b0485 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 \fR. The autoclear feature is supported since Linux 2.6.25. .SH EXTERNAL HELPERS The syntax of external unmount helpers is: .PP -- 2.47.3