]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
umount: cleanup umount.8 about mtab
authorKarel Zak <kzak@redhat.com>
Tue, 30 Aug 2016 08:41:05 +0000 (10:41 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 30 Aug 2016 08:41:05 +0000 (10:41 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/umount.8

index caef3b04855cd00bd8ea7b0903e68a62f6a32698..a3793dfb1bd7bda36163f257ad143883238bb6a1 100644 (file)
@@ -60,8 +60,11 @@ files.  A lazy unmount avoids this problem.
 .TP
 .BR \-a , " \-\-all"
 All of the filesystems described in
-.I /etc/mtab
-are unmounted, except the \fIproc\fR filesystem.
+.I /proc/self/mountinfo
+(or in deprecated /etc/mtab)
+are unmounted, except the proc, devfs, devpts, sysfs, rpc_pipefs and nfsd
+filesystems. This list of the filesystems may be replaced by \fB\-\-types\fR
+umount option.
 .TP
 .BR \-A , " \-\-all\-targets"
 Unmount all mountpoints in the current namespace for the specified filesystem.
@@ -87,7 +90,7 @@ in this case "autoclear" functionality is enabled by default.
 .B \-\-fake
 Causes everything to be done except for the actual system call or umount helper
 execution; this 'fakes' unmounting the filesystem.  It can be used to remove
-entries from
+entries from the deprecated
 .I /etc/mtab
 that were unmounted earlier with the
 .B \-n
@@ -194,13 +197,20 @@ a mountpoint that is not defined in \fI/etc/fstab\fR
 A \fBhelper=\fItype\fR marker in the mtab file will redirect
 all unmount requests
 to the \fB/sbin/umount.\fItype\fR helper independently of UID.
+.PP
+Note that \fI/etc/mtab\fR is currently deprecated and helper= and another
+userspace mount options are maintained by libmount.
 .SH FILES
 .TP
 .B /etc/mtab
-table of mounted filesystems
+table of mounted filesystems (deprecated and usually replaced by
+symlink to /proc/mounts)
 .TP
 .B /etc/fstab
 table of known filesystems
+.TP
+.B /proc/self/mountinfo
+table of mounted filesystems generated by kernel.
 .SH ENVIRONMENT
 .IP LIBMOUNT_FSTAB=<path>
 overrides the default location of the fstab file (ignored for suid)