coda_vfsops.h revision 1.17.10.1 1 1.17.10.1 mjf /* $NetBSD: coda_vfsops.h,v 1.17.10.1 2007/12/08 18:18:33 mjf 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.17.10.1 mjf int coda_mount(struct mount *, const char *, void *, size_t *);
50 1.17.10.1 mjf int coda_start(struct mount *, int);
51 1.17.10.1 mjf int coda_unmount(struct mount *, int);
52 1.7 thorpej int coda_root(struct mount *, struct vnode **);
53 1.17.10.1 mjf int coda_nb_statvfs(struct mount *, struct statvfs *);
54 1.17.10.1 mjf int coda_sync(struct mount *, int, kauth_cred_t);
55 1.7 thorpej int coda_vget(struct mount *, ino_t, struct vnode **);
56 1.3 rvb int coda_fhtovp(struct mount *, struct fid *, struct mbuf *, struct vnode **,
57 1.15 elad int *, kauth_cred_t *);
58 1.3 rvb int coda_vptofh(struct vnode *, struct fid *);
59 1.3 rvb void coda_init(void);
60 1.5 jdolecek void coda_done(void);
61 1.3 rvb int coda_sysctl(int *, u_int, void *, size_t *, void *, size_t,
62 1.14 christos struct lwp *);
63 1.1 rvb int getNewVnode(struct vnode **vpp);
64 1.12 atatat
65 1.12 atatat #ifdef SYSCTL_SETUP_PROTO
66 1.12 atatat SYSCTL_SETUP_PROTO(sysctl_vfs_coda_setup);
67 1.12 atatat #endif /* SYSCTL_SETUP_PROTO */
68