|
|
05ad79 |
From ad1c931f24e81b169127d611eb8aac72665c4bf2 Mon Sep 17 00:00:00 2001
|
|
|
05ad79 |
From: Karel Zak <kzak@redhat.com>
|
|
|
05ad79 |
Date: Tue, 30 Aug 2016 10:25:44 +0200
|
|
|
05ad79 |
Subject: [PATCH 096/116] umount: fix obsolete info about loop= in umount.8
|
|
|
05ad79 |
|
|
|
05ad79 |
Upstream: Upstream: Upstream: https://github.com/karelzak/util-linux/commit/d00eb87ba284635e72b10880dfcf409276fa41b0
|
|
|
05ad79 |
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1370959
|
|
|
05ad79 |
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
|
05ad79 |
---
|
|
|
05ad79 |
sys-utils/umount.8 | 20 ++++++++++++--------
|
|
|
05ad79 |
1 file changed, 12 insertions(+), 8 deletions(-)
|
|
|
05ad79 |
|
|
|
05ad79 |
diff --git a/sys-utils/umount.8 b/sys-utils/umount.8
|
|
|
05ad79 |
index 1fa653c..f0a712b 100644
|
|
|
05ad79 |
--- a/sys-utils/umount.8
|
|
|
05ad79 |
+++ b/sys-utils/umount.8
|
|
|
05ad79 |
@@ -78,8 +78,10 @@ Do not canonicalize paths. For more details about this option see the
|
|
|
05ad79 |
man page.
|
|
|
05ad79 |
.TP
|
|
|
05ad79 |
\fB\-d\fR, \fB\-\-detach\-loop\fR
|
|
|
05ad79 |
-In case the unmounted device was a loop device, also free this loop
|
|
|
05ad79 |
-device.
|
|
|
05ad79 |
+When the unmounted device was a loop device, also free this loop
|
|
|
05ad79 |
+device. This option is unnecessary for devices initialized by
|
|
|
05ad79 |
+.BR mount (8),
|
|
|
05ad79 |
+in this case "autoclear" functionality is enabled by default.
|
|
|
05ad79 |
.TP
|
|
|
05ad79 |
\fB\-\-fake\fP
|
|
|
05ad79 |
Causes everything to be done except for the actual system call; this 'fakes'
|
|
|
05ad79 |
@@ -145,12 +147,14 @@ Print version and exit.
|
|
|
05ad79 |
.SH "THE LOOP DEVICE"
|
|
|
05ad79 |
The
|
|
|
05ad79 |
.B umount
|
|
|
05ad79 |
-command will free the loop device (if any) associated with the mount, in
|
|
|
05ad79 |
-case it finds the option 'loop=...' in
|
|
|
05ad79 |
-.IR /etc/mtab ,
|
|
|
05ad79 |
-or when the \-d option was given. Any pending loop devices can be freed
|
|
|
05ad79 |
-using 'losetup -d', see
|
|
|
05ad79 |
-.BR losetup (8).
|
|
|
05ad79 |
+command will automatically detach loop device previously initialized by
|
|
|
05ad79 |
+.BR mount (8)
|
|
|
05ad79 |
+command independently of /etc/mtab.
|
|
|
05ad79 |
+
|
|
|
05ad79 |
+In this case the device is initialized with "autoclear" flag (see
|
|
|
05ad79 |
+.BR losetup (8)
|
|
|
05ad79 |
+output for more details), otherwise it's necessary to use the option \fB \-\-detach\-loop\fR
|
|
|
05ad79 |
+or call \fBlosetup -d <device>\fR. The autoclear feature is supported since Linux 2.6.25.
|
|
|
05ad79 |
.SH NOTES
|
|
|
05ad79 |
The syntax of external umount helpers is:
|
|
|
05ad79 |
.PP
|
|
|
05ad79 |
--
|
|
|
05ad79 |
2.9.3
|
|
|
05ad79 |
|