summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.8
diff options
context:
space:
mode:
authorKarel Zak2018-02-22 12:45:56 +0100
committerKarel Zak2018-02-22 12:45:56 +0100
commitf49cf49bd857a2ecf3207bb6e38a08fc039bbe8e (patch)
treec2d88a2d0c7bcb55939bd134bd901097c2339cf5 /sys-utils/mount.8
parentlibsmartcols: fix docs warnings (diff)
downloadkernel-qcow2-util-linux-f49cf49bd857a2ecf3207bb6e38a08fc039bbe8e.tar.gz
kernel-qcow2-util-linux-f49cf49bd857a2ecf3207bb6e38a08fc039bbe8e.tar.xz
kernel-qcow2-util-linux-f49cf49bd857a2ecf3207bb6e38a08fc039bbe8e.zip
mount: add note about cached kernel table for --all
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.8')
-rw-r--r--sys-utils/mount.86
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8
index f492f7f25..c040730a2 100644
--- a/sys-utils/mount.8
+++ b/sys-utils/mount.8
@@ -118,7 +118,7 @@ network filesystems) the same filesystem maybe be mounted on the same
mountpoint more times. The mount command does not implement any policy to
control this behavior. All behavior is controlled by kernel and it is usually
specific to filesystem driver. The exception is \fB\-\-all\fR, in this case
-already mounted filesystems are ignored.
+already mounted filesystems are ignored (see \fB\-\-all\fR below for more details).
.SS Listing the mounts
The listing mode is maintained for backward compatibility only.
@@ -553,6 +553,10 @@ Mount all filesystems (of the given types) mentioned in
.B noauto
keyword). The filesystems are mounted following their order in
.IR fstab .
+The mount command compares filesystem source, target (and fs root for bind
+mount or btrfs) to detect already mounted filesystems. The kernel table with
+already mounted filesystems is cached during \fBmount \-\-all\fR. It means
+that all duplicated fstab entries will be mounted.
.sp
Note that it is a bad practice to use \fBmount \-a\fR for
.IR fstab