xref: /dflybsd-src/sbin/mount_dirfs/mount_dirfs.8 (revision ed768960729b416f420895efe2d1cd63d70aeb60)
1509bc517SAntonio Huete Jimenez.\"
2509bc517SAntonio Huete Jimenez.\" Copyright (c) 2013 Antonio Huete Jimenez <tuxillo@quantumachine.net>
3509bc517SAntonio Huete Jimenez.\" All rights reserved.
4509bc517SAntonio Huete Jimenez.\"
5509bc517SAntonio Huete Jimenez.\" Redistribution and use in source and binary forms, with or without
6509bc517SAntonio Huete Jimenez.\" modification, are permitted provided that the following conditions
7509bc517SAntonio Huete Jimenez.\" are met:
8509bc517SAntonio Huete Jimenez.\" 1. Redistributions of source code must retain the above copyright
9509bc517SAntonio Huete Jimenez.\"    notice, this list of conditions and the following disclaimer.
10509bc517SAntonio Huete Jimenez.\" 2. Redistributions in binary form must reproduce the above copyright
11509bc517SAntonio Huete Jimenez.\"    notice, this list of conditions and the following disclaimer in the
12509bc517SAntonio Huete Jimenez.\"    documentation and/or other materials provided with the distribution.
13509bc517SAntonio Huete Jimenez.\"
14509bc517SAntonio Huete Jimenez.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
15509bc517SAntonio Huete Jimenez.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16509bc517SAntonio Huete Jimenez.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17509bc517SAntonio Huete Jimenez.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
18509bc517SAntonio Huete Jimenez.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19509bc517SAntonio Huete Jimenez.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20509bc517SAntonio Huete Jimenez.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21509bc517SAntonio Huete Jimenez.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22509bc517SAntonio Huete Jimenez.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23509bc517SAntonio Huete Jimenez.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24509bc517SAntonio Huete Jimenez.\" POSSIBILITY OF SUCH DAMAGE.
25509bc517SAntonio Huete Jimenez.\"
26509bc517SAntonio Huete Jimenez.Dd September 5, 2013
27509bc517SAntonio Huete Jimenez.Dt MOUNT_DIRFS 8
28509bc517SAntonio Huete Jimenez.Os
29509bc517SAntonio Huete Jimenez.Sh NAME
30509bc517SAntonio Huete Jimenez.Nm mount_dirfs
31509bc517SAntonio Huete Jimenez.Nd mount an host directory inside a vkernel
32509bc517SAntonio Huete Jimenez.Sh SYNOPSIS
33509bc517SAntonio Huete Jimenez.Nm
34509bc517SAntonio Huete Jimenez.Op Fl o Ar options
35509bc517SAntonio Huete Jimenez.Ar hostdir
36509bc517SAntonio Huete Jimenez.Ar mount_point
37509bc517SAntonio Huete Jimenez.Sh DESCRIPTION
38509bc517SAntonio Huete JimenezThe
39509bc517SAntonio Huete Jimenez.Nm
40509bc517SAntonio Huete Jimenezallows
41509bc517SAntonio Huete Jimenez.Xr vkernel 7
42509bc517SAntonio Huete Jimenezto access host directories with minimal configuration.
43509bc517SAntonio Huete Jimenez.Pp
44509bc517SAntonio Huete JimenezThe following options are supported:
45509bc517SAntonio Huete Jimenez.Bl -tag -width XoXoptions
46509bc517SAntonio Huete Jimenez.It Fl o Ar options
47509bc517SAntonio Huete JimenezOptions are specified with a
48509bc517SAntonio Huete Jimenez.Fl o
49509bc517SAntonio Huete Jimenezflag followed by a comma-separated string of options.
50509bc517SAntonio Huete JimenezSee the
51509bc517SAntonio Huete Jimenez.Xr mount 8
52509bc517SAntonio Huete Jimenezand
53509bc517SAntonio Huete Jimenez.Xr dirfs 5
54509bc517SAntonio Huete Jimenezman page for possible options and their meanings.
55509bc517SAntonio Huete Jimenez.El
56509bc517SAntonio Huete Jimenez.Sh EXAMPLES
57509bc517SAntonio Huete JimenezThe command below mounts host directory
58509bc517SAntonio Huete Jimenez.Pa /usr/src
59509bc517SAntonio Huete Jimenezon vkernel's directory
60509bc517SAntonio Huete Jimenez.Pa /mnt :
61509bc517SAntonio Huete Jimenez.Pp
62509bc517SAntonio Huete Jimenez.Ic "mount -t dirfs /usr/src /mnt"
63509bc517SAntonio Huete Jimenez.Sh SEE ALSO
64509bc517SAntonio Huete Jimenez.Xr dirfs 5 ,
65*ed768960SSascha Wildner.Xr fstab 5 ,
66509bc517SAntonio Huete Jimenez.Xr mount 8
67