]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/mount_std/mount_std.8
o Change almost all magic numbers to the appropriate constants.
[FreeBSD/FreeBSD.git] / sbin / mount_std / mount_std.8
1 .\"
2 .\" Copyright (c) 1992, 1993, 1994
3 .\"     The Regents of the University of California.  All rights reserved.
4 .\" All rights reserved.
5 .\"
6 .\" This code is derived from software donated to Berkeley by
7 .\" Jan-Simon Pendry.
8 .\"
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
11 .\" are met:
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\"    notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\"    notice, this list of conditions and the following disclaimer in the
16 .\"    documentation and/or other materials provided with the distribution.
17 .\" 3. All advertising materials mentioning features or use of this software
18 .\"    must display the following acknowledgement:
19 .\"     This product includes software developed by the University of
20 .\"     California, Berkeley and its contributors.
21 .\" 4. Neither the name of the University nor the names of its contributors
22 .\"    may be used to endorse or promote products derived from this software
23 .\"    without specific prior written permission.
24 .\"
25 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .\" SUCH DAMAGE.
36 .\"
37 .\" $FreeBSD$
38 .\"
39 .Dd May 13, 1996
40 .Dt MOUNT_STD 8
41 .Os
42 .Sh NAME
43 .Nm mount_std ,
44 .Nm mount_devfs ,
45 .Nm mount_fdescfs ,
46 .Nm mount_linprocfs ,
47 .Nm mount_procfs
48 .Nd mount
49 .Dq standard
50 filesystems
51 .Sh SYNOPSIS
52 .Nm mount_ Ns Ar fsname
53 .Op Fl o Ar options
54 .Ar "fs"
55 .Ar mount_point
56 .Sh DESCRIPTION
57 The
58 .Nm
59 command is a generic mechanism for attaching ``standard'' filesystems to
60 the filesystem.  The
61 .Nm
62 command currently supports the following filesystems:
63 .Nm devfs ,
64 .Nm fdescfs ,
65 .Nm linprocfs
66 and
67 .Nm procfs .
68 A ``standard'' filesystem is one which:
69 .Bl -enum -offset indent
70 .It
71 accepts only the standard
72 .Fl o
73 options
74 .Dq ro
75 .Pq Dq rdonly ,
76 .Dq rw ,
77 .Dq nodev ,
78 .Dq noexec ,
79 .Dq nosuid ,
80 and
81 .Dq union .
82 .It
83 has a kernel filesystem module name the same as its user-visible name.
84 .It
85 requires no other special processing on the part of the
86 .Nm
87 command.
88 .El
89 .Pp
90 The options are as follows:
91 .Bl -tag -width indent
92 .It Fl o
93 Options are specified with a
94 .Fl o
95 flag followed by a comma separated string of options.
96 See the
97 .Xr mount 8
98 man page for possible options and their meanings.
99 .El
100 .Pp
101 The
102 .Nm
103 command examines its zeroth command-line argument (the name by which
104 it was called) to determine the type of filesystem to be mounted.  If
105 it is called by a name which does not end in
106 .Dq Li _ Ns Ar fsname ,
107 .Nm
108 will assume (for compatibility
109 with
110 .Xr mount 8 )
111 that the zeroth argument contains only the name of the filesystem type.
112 The
113 .Nm
114 command is normally installed with appropriate links to commands for
115 the distributed filesystems which can be mounted in this way;
116 for information on the function of each filesystem, see the manual page
117 for that specific
118 .Nm mount_ Ns Ar fsname
119 command.
120 .Pp
121 Refer to the following manual pages for detailed information
122 on these filesystem:
123 .Xr devfs 5 ,
124 .Xr fdescfs 5 ,
125 .Xr linprocfs 5
126 and
127 .Xr procfs 5 .
128 .Sh DIAGNOSTICS
129 .Bl -diag
130 .It argv[0] must end in _fsname
131 .Nm Mount_std
132 was called with a zeroth argument of
133 .Dq Li mount_std .
134 .It vfsload(%s)
135 .Nm Mount_std
136 was unable to load a kernel module implementing the %s filesystem
137 type.
138 .It %s filesystem not available
139 The specified filesystem type was not present in the kernel and no
140 loadable module for it was found.
141 .El
142 .Sh SEE ALSO
143 .Xr mount 2 ,
144 .Xr unmount 2 ,
145 .Xr getvfsbyname 3 ,
146 .Xr devfs 5 ,
147 .Xr fdescfs 5 ,
148 .Xr fstab 5 ,
149 .Xr linprocfs 5 ,
150 .Xr procfs 5 ,
151 .Xr mount 8
152 .Sh CAVEATS
153 None of the ``standard'' filesystems may be NFS-exported.
154 .Sh HISTORY
155 The
156 .Nm
157 utility first appeared in
158 .Fx 2.2 .
159 Loadable filesystem modules first appeared in
160 .Fx 2.0 .
161 The
162 .Dq fdescfs
163 and
164 .Dq procfs
165 filesystem types first appeared in
166 .Fx 2.0 ;
167 the
168 .Dq devfs
169 filesystem type first appeared in
170 .Fx 2.2 ;
171 the
172 .Dq linprocfs
173 filesystem type first appeared in
174 .Fx 4.0 .