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