1 /* $NetBSD: coda_vfsops.h,v 1.17 2007/07/31 21:14:19 pooka Exp $ */
5 * Coda: an Experimental Distributed File System
8 * Copyright (c) 1987-1998 Carnegie Mellon University
11 * Permission to use, copy, modify and distribute this software and its
12 * documentation is hereby granted, provided that both the copyright
13 * notice and this permission notice appear in all copies of the
14 * software, derivative works or modified versions, and any portions
15 * thereof, and that both notices appear in supporting documentation, and
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
20 * CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS,
21 * SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS
22 * FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON
23 * DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
24 * RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
25 * ANY DERIVATIVE WORK.
27 * Carnegie Mellon encourages users of this software to return any
28 * improvements or extensions that they make, and to grant Carnegie
29 * Mellon the rights to redistribute these changes without encumbrance.
31 * @(#) coda/coda_vfsops.h,v 1.1.1.1 1998/08/29 21:26:46 rvb Exp $
36 * This overlays the fid structure (see vfs.h)
37 * Only used below and will probably go away.
48 int coda_vfsopstats_init(void);
49 int coda_mount(struct mount
*, const char *, void *, size_t *);
50 int coda_start(struct mount
*, int);
51 int coda_unmount(struct mount
*, int);
52 int coda_root(struct mount
*, struct vnode
**);
53 int coda_nb_statvfs(struct mount
*, struct statvfs
*);
54 int coda_sync(struct mount
*, int, kauth_cred_t
);
55 int coda_vget(struct mount
*, ino_t
, struct vnode
**);
56 int coda_fhtovp(struct mount
*, struct fid
*, struct mbuf
*, struct vnode
**,
57 int *, kauth_cred_t
*);
58 int coda_vptofh(struct vnode
*, struct fid
*);
61 int coda_sysctl(int *, u_int
, void *, size_t *, void *, size_t,
63 int getNewVnode(struct vnode
**vpp
);
65 #ifdef SYSCTL_SETUP_PROTO
66 SYSCTL_SETUP_PROTO(sysctl_vfs_coda_setup
);
67 #endif /* SYSCTL_SETUP_PROTO */