]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/fs/coda/coda_vnops.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / fs / coda / coda_vnops.h
1 /*-
2  *
3  *             Coda: an Experimental Distributed File System
4  *                              Release 3.1
5  *
6  *           Copyright (c) 1987-1998 Carnegie Mellon University
7  *                          All Rights Reserved
8  *
9  * Permission  to  use, copy, modify and distribute this software and its
10  * documentation is hereby granted,  provided  that  both  the  copyright
11  * notice  and  this  permission  notice  appear  in  all  copies  of the
12  * software, derivative works or  modified  versions,  and  any  portions
13  * thereof, and that both notices appear in supporting documentation, and
14  * that credit is given to Carnegie Mellon University  in  all  documents
15  * and publicity pertaining to direct or indirect use of this code or its
16  * derivatives.
17  *
18  * CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS  KNOWN  TO  HAVE  BUGS,
19  * SOME  OF  WHICH MAY HAVE SERIOUS CONSEQUENCES.  CARNEGIE MELLON ALLOWS
20  * FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.   CARNEGIE  MELLON
21  * DISCLAIMS  ANY  LIABILITY  OF  ANY  KIND  FOR  ANY  DAMAGES WHATSOEVER
22  * RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE  OR  OF
23  * ANY DERIVATIVE WORK.
24  *
25  * Carnegie  Mellon  encourages  users  of  this  software  to return any
26  * improvements or extensions that  they  make,  and  to  grant  Carnegie
27  * Mellon the rights to redistribute these changes without encumbrance.
28  *
29  *      @(#) src/sys/coda/coda_vnops.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
30  * $FreeBSD$
31   */
32
33 /*
34  * Mach Operating System
35  * Copyright (c) 1990 Carnegie-Mellon University
36  * Copyright (c) 1989 Carnegie-Mellon University
37  * All rights reserved.  The CMU software License Agreement specifies
38  * the terms and conditions for use and redistribution.
39  */
40
41 /*
42  * This code was written for the Coda filesystem at Carnegie Mellon
43  * University.  Contributers include David Steere, James Kistler, and
44  * M. Satyanarayanan.
45  */
46
47 #ifndef _CODA_VNOPS_H_
48 #define _CODA_VNOPS_H_
49
50 /*
51  * FreeBSD interfaces to the vnodeops.
52  */
53 vop_open_t      coda_open;
54 vop_close_t     coda_close;
55 vop_read_t      coda_read;
56 vop_write_t     coda_write;
57 vop_ioctl_t     coda_ioctl;
58 vop_getattr_t   coda_getattr;
59 vop_setattr_t   coda_setattr;
60 vop_access_t    coda_access;
61 vop_readlink_t  coda_readlink;
62 vop_fsync_t     coda_fsync;
63 vop_inactive_t  coda_inactive;
64 vop_cachedlookup_t      coda_lookup;
65 vop_create_t    coda_create;
66 vop_remove_t    coda_remove;
67 vop_link_t      coda_link;
68 vop_rename_t    coda_rename;
69 vop_mkdir_t     coda_mkdir;
70 vop_rmdir_t     coda_rmdir;
71 vop_symlink_t   coda_symlink;
72 vop_readdir_t   coda_readdir;
73 vop_strategy_t  coda_strategy;
74 vop_reclaim_t   coda_reclaim;
75 vop_lock1_t     coda_lock;
76 vop_unlock_t    coda_unlock;
77 vop_islocked_t  coda_islocked;
78 vop_pathconf_t  coda_pathconf;
79
80 int     coda_rdwr(struct vnode *vp, struct uio *uiop, enum uio_rw rw,
81             int ioflag, struct ucred *cred, struct thread *td);
82 void    coda_print_cred(struct ucred *cred);
83
84 #endif /* !_CODA_VNOPS_H_ */