Thu Jun 8 22:29:59 2017 UTC ()
add a forward declaration of struct mbuf.
needed due to some other change I made for ZFS.


(chs)
diff -r1.19 -r1.20 src/sys/coda/coda_vfsops.h

cvs diff -r1.19 -r1.20 src/sys/coda/coda_vfsops.h (switch to unified diff)

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