2 .\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice(s), this list of conditions and the following disclaimer as
9 .\" the first lines of this file unmodified other than the possible
10 .\" addition of one or more copyright notices.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice(s), this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
16 .\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 .\" DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
19 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22 .\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
34 .Nd "generic file system mount function"
40 .Fa "struct thread *td"
41 .Fa "const char *fstype"
49 function handles the generic portion of mounting a file system,
50 and calls the file system specific mount function after verifying
51 its parameters and setting up the structures expected by the
52 underlying mount code.
55 is called directly by the
60 .Bl -tag -width ".Fa fsflags"
62 The thread responsible for this call.
64 The type of file system being mounted.
66 The path to the mount point of the file system.
68 Flags controlling the mount.
73 .Dv MNT_EXPORTED , MNT_NOSUID , MNT_UPDATE , MNT_RELOAD ,
74 .Dv MNT_FORCE , MNT_ASYNC , MNT_SYNCHRONOUS , MNT_UNION , MNT_NOATIME ,
75 .Dv MNT_SNAPSHOT , MNT_NOCLUSTERR , MNT_NOCLUSTERW , MNT_IGNORE ,
76 .Dv MNT_UNION , MNT_NOSYMFOLLOW
78 File system specific data structure.
82 and is left untouched when passed to file system's
86 A 0 value is returned on success.
89 .It Bq Er ENAMETOOLONG
90 The fs type or the mount point path is too long or any individual
91 path component is too long.
94 There are a number of reason this can occur
95 ranging from the user not having permission to mount a file system
96 to the securelevel being to high to load the
100 Invalid operation (ex: trying to update a non mount-point).
102 The mount point does not exist (from
105 The mount point is a muddle of links (from
108 The operation is not supported (ex: reloading a r/w file system).
110 The mount point is busy or is not really a mount point (on update).
112 The mount point is not a directory.
114 The kernel linker was unable to load the specified
116 or was unable to find the specified
121 Other errors can be returned by the file system's
124 you should check the specific file system for details.
126 this call relies on a large number of other kernel services
127 whose errors it returns so this list may not be exhaustive.
135 This manual page was written by
136 .An Chad David Aq davidc@acns.ab.ca .