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