summaryrefslogtreecommitdiffstats
path: root/mount/mount.8
diff options
context:
space:
mode:
authorKarel Zak2009-12-03 15:30:53 +0100
committerKarel Zak2009-12-03 15:30:53 +0100
commit45fc569a75d4e83a045027acf8e2eda08638fa0d (patch)
tree03affc61e0a29f2ad538a2d678156a3a0013ca8d /mount/mount.8
parentmount: move info about devices to the top of mount.8 (diff)
downloadkernel-qcow2-util-linux-45fc569a75d4e83a045027acf8e2eda08638fa0d.tar.gz
kernel-qcow2-util-linux-45fc569a75d4e83a045027acf8e2eda08638fa0d.tar.xz
kernel-qcow2-util-linux-45fc569a75d4e83a045027acf8e2eda08638fa0d.zip
mount: add --no-canonicalize option
For example the /sbin/mount.fuse command calls mount -i -f /dev/foo /absolut/path and it does not make sense to canonicalize already absolute paths. The new --no-canonicalize option allows to avoid unwanted readlink() calls. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/mount.8')
-rw-r--r--mount/mount.87
1 files changed, 7 insertions, 0 deletions
diff --git a/mount/mount.8 b/mount/mount.8
index 57b3571ce..66f925634 100644
--- a/mount/mount.8
+++ b/mount/mount.8
@@ -449,6 +449,13 @@ Mount without writing in
This is necessary for example when
.I /etc
is on a read-only filesystem.
+.IP "\fB\-\-no\-canonicalize\fP"
+Don't canonicalize paths. The mount command canonicalizes all paths
+(from command line or fstab) and stores canonicalized paths to the
+.IR /etc/mtab
+file. This option can be used together with the
+.B \-f
+flag for already canonicalized absolut paths.
.IP "\fB\-p, \-\-pass\-fd \fInum\fP"
In case of a loop mount with encryption, read the passphrase from
file descriptor