diff options
author | Karel Zak | 2016-08-30 10:41:05 +0200 |
---|---|---|
committer | Karel Zak | 2016-08-30 10:41:05 +0200 |
commit | 29ad8689b8084cfcbd3bfa6c40d2f87557a51b13 (patch) | |
tree | 7eb0624673b138a915b79adbfef8636078da12cc /sys-utils/umount.8 | |
parent | umount: fix obsolete info about loop= in umount.8 (diff) | |
download | kernel-qcow2-util-linux-29ad8689b8084cfcbd3bfa6c40d2f87557a51b13.tar.gz kernel-qcow2-util-linux-29ad8689b8084cfcbd3bfa6c40d2f87557a51b13.tar.xz kernel-qcow2-util-linux-29ad8689b8084cfcbd3bfa6c40d2f87557a51b13.zip |
umount: cleanup umount.8 about mtab
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/umount.8')
-rw-r--r-- | sys-utils/umount.8 | 18 |
1 files changed, 14 insertions, 4 deletions
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=<path> overrides the default location of the fstab file (ignored for suid) |