1 /*
2 * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 *
17 * 3. Neither the name of the Institute nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34 /* $arla: xfs_vfsops-bsd.h,v 1.14 2002/09/07 10:46:09 lha Exp $ */
35
36 #ifndef _xfs_vfsops_bsd_h
37 #define _xfs_vfsops_bsd_h
38
39 int
40 xfs_mount_caddr(struct mount *mp, const char *user_path, caddr_t user_data,
41 struct nameidata *ndp, d_thread_t *p);
42
43 int
44 xfs_start(struct mount * mp, int flags, d_thread_t * p);
45
46 int
47 xfs_unmount(struct mount * mp, int mntflags, d_thread_t *p);
48
49 int
50 xfs_root(struct mount *mp, struct vnode **vpp);
51
52 int
53 xfs_quotactl(struct mount *mp, int cmd, uid_t uid, caddr_t arg, d_thread_t *p);
54
55 int
56 xfs_statfs(struct mount *mp, struct statfs *sbp, d_thread_t *p);
57
58 int
59 xfs_sync(struct mount *mp, int waitfor, struct ucred *cred, d_thread_t *p);
60
61 int
62 xfs_vget(struct mount * mp,
63 #ifdef __APPLE__
64 void *ino,
65 #else
66 ino_t ino,
67 #endif
68 struct vnode ** vpp);
69
70 #ifdef HAVE_STRUCT_VFSOPS_VFS_CHECKEXP
71 int
72 xfs_fhtovp(struct mount * mp,
73 struct fid * fhp,
74 struct vnode ** vpp);
75 #else
76 int
77 xfs_fhtovp(struct mount * mp,
78 struct fid * fhp,
79 struct mbuf * nam,
80 struct vnode ** vpp,
81 int *exflagsp,
82 struct ucred ** credanonp);
83 #endif
84
85 struct mbuf;
86 int
87 xfs_checkexp (struct mount *mp,
88 #ifdef __FreeBSD__
89 struct sockaddr *nam,
90 #else
91 struct mbuf *nam,
92 #endif
93 int *exflagsp,
94 struct ucred **credanonp);
95
96 int
97 xfs_vptofh(struct vnode * vp,
98 struct fid * fhp);
99
100 int
101 xfs_dead_lookup(struct vop_lookup_args * ap);
102
103 #endif /* _xfs_vfsops_bsd_h */