Deleted Added
full compact
mount.2 (108040) mount.2 (108087)
1.\" Copyright (c) 1980, 1989, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mount.2 8.3 (Berkeley) 5/24/95
1.\" Copyright (c) 1980, 1989, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mount.2 8.3 (Berkeley) 5/24/95
33.\" $FreeBSD: head/lib/libc/sys/mount.2 108040 2002-12-18 13:33:04Z ru $
33.\" $FreeBSD: head/lib/libc/sys/mount.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd May 24, 1995
36.Dt MOUNT 2
37.Os
38.Sh NAME
39.Nm mount ,
40.Nm unmount
41.Nd mount or dismount a file system

--- 81 unchanged lines hidden (view full) ---

123the specified already mounted file system.
124.Pp
125The
126.Fa type
127argument names the file system.
128The types of file systems known to the system can be obtained with
129.Xr lsvfs 1 .
130.Pp
34.\"
35.Dd May 24, 1995
36.Dt MOUNT 2
37.Os
38.Sh NAME
39.Nm mount ,
40.Nm unmount
41.Nd mount or dismount a file system

--- 81 unchanged lines hidden (view full) ---

123the specified already mounted file system.
124.Pp
125The
126.Fa type
127argument names the file system.
128The types of file systems known to the system can be obtained with
129.Xr lsvfs 1 .
130.Pp
131.Fa Data
131The
132.Fa data
133argument
132is a pointer to a structure that contains the type
133specific arguments to mount.
134The format for these argument structures is described in the
135manual page for each file system.
136By convention file system manual pages are named
137by prefixing ``mount_'' to the name of the file system as returned by
138.Xr lsvfs 1 .
139Thus the

--- 52 unchanged lines hidden (view full) ---

192is not a directory,
193or a path prefix of
194.Fa special
195is not a directory.
196.It Bq Er EBUSY
197Another process currently holds a reference to
198.Fa dir .
199.It Bq Er EFAULT
134is a pointer to a structure that contains the type
135specific arguments to mount.
136The format for these argument structures is described in the
137manual page for each file system.
138By convention file system manual pages are named
139by prefixing ``mount_'' to the name of the file system as returned by
140.Xr lsvfs 1 .
141Thus the

--- 52 unchanged lines hidden (view full) ---

194is not a directory,
195or a path prefix of
196.Fa special
197is not a directory.
198.It Bq Er EBUSY
199Another process currently holds a reference to
200.Fa dir .
201.It Bq Er EFAULT
200.Fa Dir
202The
203.Fa dir
204argument
201points outside the process's allocated address space.
202.El
203.Pp
204The following errors can occur for a
205.Em ufs
206file system mount:
207.Bl -tag -width Er
208.It Bq Er ENODEV
209A component of ufs_args
210.Fa fspec
211does not exist.
212.It Bq Er ENOTBLK
205points outside the process's allocated address space.
206.El
207.Pp
208The following errors can occur for a
209.Em ufs
210file system mount:
211.Bl -tag -width Er
212.It Bq Er ENODEV
213A component of ufs_args
214.Fa fspec
215does not exist.
216.It Bq Er ENOTBLK
217The
213.Fa fspec
218.Fa fspec
219argument
214is not a block device.
215.It Bq Er ENXIO
216The major device number of
217.Fa fspec
218is out of range (this indicates no device driver exists
219for the associated hardware).
220.It Bq Er EBUSY
221.Fa fspec

--- 5 unchanged lines hidden (view full) ---

227number or an out of range block size.
228.It Bq Er ENOMEM
229Not enough memory was available to read the cylinder
230group information for the file system.
231.It Bq Er EIO
232An I/O error occurred while reading the super block or
233cylinder group information.
234.It Bq Er EFAULT
220is not a block device.
221.It Bq Er ENXIO
222The major device number of
223.Fa fspec
224is out of range (this indicates no device driver exists
225for the associated hardware).
226.It Bq Er EBUSY
227.Fa fspec

--- 5 unchanged lines hidden (view full) ---

233number or an out of range block size.
234.It Bq Er ENOMEM
235Not enough memory was available to read the cylinder
236group information for the file system.
237.It Bq Er EIO
238An I/O error occurred while reading the super block or
239cylinder group information.
240.It Bq Er EFAULT
241The
235.Fa fspec
242.Fa fspec
243argument
236points outside the process's allocated address space.
237.El
238.Pp
239The following errors can occur for a
240.Em nfs
241file system mount:
242.Bl -tag -width Er
243.It Bq Er ETIMEDOUT

--- 20 unchanged lines hidden (view full) ---

264.It Bq Er EINVAL
265The requested directory is not in the mount table.
266.It Bq Er EBUSY
267A process is holding a reference to a file located
268on the file system.
269.It Bq Er EIO
270An I/O error occurred while writing cached file system information.
271.It Bq Er EFAULT
244points outside the process's allocated address space.
245.El
246.Pp
247The following errors can occur for a
248.Em nfs
249file system mount:
250.Bl -tag -width Er
251.It Bq Er ETIMEDOUT

--- 20 unchanged lines hidden (view full) ---

272.It Bq Er EINVAL
273The requested directory is not in the mount table.
274.It Bq Er EBUSY
275A process is holding a reference to a file located
276on the file system.
277.It Bq Er EIO
278An I/O error occurred while writing cached file system information.
279.It Bq Er EFAULT
272.Fa Dir
280The
281.Fa dir
282argument
273points outside the process's allocated address space.
274.El
275.Pp
276A
277.Em ufs
278mount can also fail if the maximum number of file systems are currently
279mounted.
280.Sh SEE ALSO

--- 12 unchanged lines hidden ---
283points outside the process's allocated address space.
284.El
285.Pp
286A
287.Em ufs
288mount can also fail if the maximum number of file systems are currently
289mounted.
290.Sh SEE ALSO

--- 12 unchanged lines hidden ---