dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/0096-umount-fix-obsolete-info-about-loop-in-umount.8.patch

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