summaryrefslogtreecommitdiffstats
path: root/mount/mount.8
diff options
context:
space:
mode:
authorKarel Zak2007-05-01 00:28:08 +0200
committerKarel Zak2007-05-02 13:05:14 +0200
commitbb369b14044f822e36097928efe9c121a225f9cb (patch)
tree9f8dbb96d0f60f348b1b1d21487b198ce07f3790 /mount/mount.8
parenttests: add mount -o remount test (diff)
downloadkernel-qcow2-util-linux-bb369b14044f822e36097928efe9c121a225f9cb.tar.gz
kernel-qcow2-util-linux-bb369b14044f822e36097928efe9c121a225f9cb.tar.xz
kernel-qcow2-util-linux-bb369b14044f822e36097928efe9c121a225f9cb.zip
mount: avoid duplicate entries in mtab when mount -f
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/mount.8')
-rw-r--r--mount/mount.84
1 files changed, 3 insertions, 1 deletions
diff --git a/mount/mount.8 b/mount/mount.8
index 2d7c21896..4692a42b3 100644
--- a/mount/mount.8
+++ b/mount/mount.8
@@ -341,7 +341,9 @@ conjunction with the
flag to determine what the
.B mount
command is trying to do. It can also be used to add entries for devices
-that were mounted earlier with the -n option.
+that were mounted earlier with the -n option. The -f option checks for
+existing record in /etc/mtab and fails when the record already
+exists (with regular non-fake mount, this check is done by kernel).
.TP
.B \-i
Don't call the /sbin/mount.<filesystem> helper even if it exists.