From 29ad8689b8084cfcbd3bfa6c40d2f87557a51b13 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 30 Aug 2016 10:41:05 +0200 Subject: umount: cleanup umount.8 about mtab Signed-off-by: Karel Zak --- sys-utils/umount.8 | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'sys-utils/umount.8') diff --git a/sys-utils/umount.8 b/sys-utils/umount.8 index caef3b048..a3793dfb1 100644 --- a/sys-utils/umount.8 +++ b/sys-utils/umount.8 @@ -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= overrides the default location of the fstab file (ignored for suid) -- cgit v1.2.3-55-g7522