summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.8
diff options
context:
space:
mode:
authorOndrej Oprala2012-12-21 14:45:46 +0100
committerKarel Zak2013-01-09 18:52:32 +0100
commit701c69617e50ed8c15bc2c5bc7bf6eee1cb04b23 (patch)
treed979ddb7a6757d3ab5f2900d460ab721f7025a8e /sys-utils/mount.8
parentlibmount; add recursive mkdir (diff)
downloadkernel-qcow2-util-linux-701c69617e50ed8c15bc2c5bc7bf6eee1cb04b23.tar.gz
kernel-qcow2-util-linux-701c69617e50ed8c15bc2c5bc7bf6eee1cb04b23.tar.xz
kernel-qcow2-util-linux-701c69617e50ed8c15bc2c5bc7bf6eee1cb04b23.zip
mount: add support for x-mount.mkdir[=<mode>] option
If the target directory (mountpoint) does not exist then mount(8) will create it before mount.<type> is executed or mount(2) syscall is called. Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.8')
-rw-r--r--sys-utils/mount.87
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8
index 5f77f1836..add9818fa 100644
--- a/sys-utils/mount.8
+++ b/sys-utils/mount.8
@@ -1105,6 +1105,13 @@ applications specific options. These options are not stored to mtab file, send
to mount.<type> helpers or
.B mount(2)
system call. The suggested format is x-<appname>.<option> (e.g. x-systemd.automount).
+.TP
+.B x-mount.mkdir[=<mode>]
+Allow to make a target directory (mountpoint). The optional argument <mode>
+specifies the file system access mode used for
+.B mkdir (2)
+in octal notation. The default mode is 0755. This functionality is supported
+only for root users.
.SH "FILESYSTEM SPECIFIC MOUNT OPTIONS"
The following options apply only to certain filesystems.