coda_vfsops.h revision 1.17.12.2 1 1.17.12.2 pooka /* $NetBSD: coda_vfsops.h,v 1.17.12.2 2007/07/31 21:14:20 pooka Exp $ */
2 1.17.12.2 pooka
3 1.17.12.2 pooka /*
4 1.17.12.2 pooka *
5 1.17.12.2 pooka * Coda: an Experimental Distributed File System
6 1.17.12.2 pooka * Release 3.1
7 1.17.12.2 pooka *
8 1.17.12.2 pooka * Copyright (c) 1987-1998 Carnegie Mellon University
9 1.17.12.2 pooka * All Rights Reserved
10 1.17.12.2 pooka *
11 1.17.12.2 pooka * Permission to use, copy, modify and distribute this software and its
12 1.17.12.2 pooka * documentation is hereby granted, provided that both the copyright
13 1.17.12.2 pooka * notice and this permission notice appear in all copies of the
14 1.17.12.2 pooka * software, derivative works or modified versions, and any portions
15 1.17.12.2 pooka * thereof, and that both notices appear in supporting documentation, and
16 1.17.12.2 pooka * that credit is given to Carnegie Mellon University in all documents
17 1.17.12.2 pooka * and publicity pertaining to direct or indirect use of this code or its
18 1.17.12.2 pooka * derivatives.
19 1.17.12.2 pooka *
20 1.17.12.2 pooka * CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS,
21 1.17.12.2 pooka * SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS
22 1.17.12.2 pooka * FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON
23 1.17.12.2 pooka * DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
24 1.17.12.2 pooka * RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
25 1.17.12.2 pooka * ANY DERIVATIVE WORK.
26 1.17.12.2 pooka *
27 1.17.12.2 pooka * Carnegie Mellon encourages users of this software to return any
28 1.17.12.2 pooka * improvements or extensions that they make, and to grant Carnegie
29 1.17.12.2 pooka * Mellon the rights to redistribute these changes without encumbrance.
30 1.17.12.2 pooka *
31 1.17.12.2 pooka * @(#) coda/coda_vfsops.h,v 1.1.1.1 1998/08/29 21:26:46 rvb Exp $
32 1.17.12.2 pooka */
33 1.17.12.2 pooka
34 1.17.12.2 pooka /*
35 1.17.12.2 pooka * cfid structure:
36 1.17.12.2 pooka * This overlays the fid structure (see vfs.h)
37 1.17.12.2 pooka * Only used below and will probably go away.
38 1.17.12.2 pooka */
39 1.17.12.2 pooka
40 1.17.12.2 pooka struct cfid {
41 1.17.12.2 pooka u_short cfid_len;
42 1.17.12.2 pooka u_short padding;
43 1.17.12.2 pooka CodaFid cfid_fid;
44 1.17.12.2 pooka };
45 1.17.12.2 pooka
46 1.17.12.2 pooka struct mount;
47 1.17.12.2 pooka
48 1.17.12.2 pooka int coda_vfsopstats_init(void);
49 1.17.12.2 pooka int coda_mount(struct mount *, const char *, void *, size_t *, struct lwp *);
50 1.17.12.2 pooka int coda_start(struct mount *, int, struct lwp *);
51 1.17.12.2 pooka int coda_unmount(struct mount *, int, struct lwp *);
52 1.17.12.2 pooka int coda_root(struct mount *, struct vnode **);
53 1.17.12.2 pooka int coda_quotactl(struct mount *, int, uid_t, void *, struct lwp *);
54 1.17.12.2 pooka int coda_nb_statvfs(struct mount *, struct statvfs *, struct lwp *);
55 1.17.12.2 pooka int coda_sync(struct mount *, int, kauth_cred_t, struct lwp *);
56 1.17.12.2 pooka int coda_vget(struct mount *, ino_t, struct vnode **);
57 1.17.12.2 pooka int coda_fhtovp(struct mount *, struct fid *, struct mbuf *, struct vnode **,
58 1.17.12.2 pooka int *, kauth_cred_t *);
59 1.17.12.2 pooka int coda_vptofh(struct vnode *, struct fid *);
60 1.17.12.2 pooka void coda_init(void);
61 1.17.12.2 pooka void coda_done(void);
62 1.17.12.2 pooka int coda_sysctl(int *, u_int, void *, size_t *, void *, size_t,
63 1.17.12.2 pooka struct lwp *);
64 1.17.12.2 pooka int getNewVnode(struct vnode **vpp);
65 1.17.12.2 pooka
66 1.17.12.2 pooka #ifdef SYSCTL_SETUP_PROTO
67 1.17.12.2 pooka SYSCTL_SETUP_PROTO(sysctl_vfs_coda_setup);
68 1.17.12.2 pooka #endif /* SYSCTL_SETUP_PROTO */
69