summaryrefslogtreecommitdiffstats
path: root/sbin/mount/mount.8
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2009-03-05 08:57:35 +0000
committerrodrigc <rodrigc@FreeBSD.org>2009-03-05 08:57:35 +0000
commitbfed6ac3d611dd6cc89954d48f661a05dba0a26b (patch)
tree360ef18032777ded3ef8ce338014a6d1061ab0fa /sbin/mount/mount.8
parent359ccc0fed13dda0049f5c5df4f7d4b21e6d1c62 (diff)
downloadFreeBSD-src-bfed6ac3d611dd6cc89954d48f661a05dba0a26b.zip
FreeBSD-src-bfed6ac3d611dd6cc89954d48f661a05dba0a26b.tar.gz
Add a -o mountprog parameter to mount which explicitly allows
an alternative program to be used for mounting a file system. Ideally, all file systems should be converted to pass string arguments to nmount(), so that /sbin/mount can handle them. However, certain file systems such as FUSE have not done this, and want to have their own userland mount programs. For example, to mount an NTFS file system with the FUSE NTFS driver: mount -t ntfs -o mountprog=/usr/local/bin/ntfs-3g /dev/acd0 /mnt or via an fstab entry: /dev/acd0 /mnt ntfs ro,noauto,mountprog=/usr/local/bin/ntfs-3g 0 0 PR: 120784 Requested by: Dominic Fandrey
Diffstat (limited to 'sbin/mount/mount.8')
-rw-r--r--sbin/mount/mount.89
1 files changed, 9 insertions, 0 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8
index 4c55df8..7635d74 100644
--- a/sbin/mount/mount.8
+++ b/sbin/mount/mount.8
@@ -163,6 +163,15 @@ is run with the
flag but without the
.Fl l
flag.
+.It Cm mountprog Ns = Ns Aq Ar program
+Force
+.Nm
+to use the specified program to mount the file system, instead of calling
+.Xr nmount 2
+directly. For example:
+.Bd -literal
+mount -t foofs -o mountprog=/mydir/fooprog /dev/acd0 /mnt
+.Ed
.It Cm multilabel
Enable multi-label Mandatory Access Control, or MAC, on the specified file
system.
OpenPOWER on IntegriCloud