Deleted Added
full compact
coda_venus.h (171414) coda_venus.h (176139)
1/*-
1/*-
2 *
2 *
3 * Coda: an Experimental Distributed File System
4 * Release 3.1
3 * Coda: an Experimental Distributed File System
4 * Release 3.1
5 *
5 *
6 * Copyright (c) 1987-1998 Carnegie Mellon University
7 * All Rights Reserved
6 * Copyright (c) 1987-1998 Carnegie Mellon University
7 * All Rights Reserved
8 *
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.
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 *
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.
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 *
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.
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_venus.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
30 * $FreeBSD: head/sys/fs/coda/coda_venus.h 171377 2007-07-11 21:32:08Z rwatson $
31 *
28 *
29 * @(#) src/sys/coda/coda_venus.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
30 * $FreeBSD: head/sys/fs/coda/coda_venus.h 176139 2008-02-10 11:18:12Z rwatson $
32 */
33
31 */
32
34int
35venus_root(void *mdp,
36 struct ucred *cred, struct proc *p,
37/*out*/ CodaFid *VFid);
33#ifndef _CODA_VENUS_H_
34#define _CODA_VENUS_H_
38
35
39int
40venus_open(void *mdp, CodaFid *fid, int flag,
41 struct ucred *cred, struct proc *p,
42/*out*/ struct vnode **vp);
36int venus_root(void *mdp, struct ucred *cred, struct proc *p,
37 /*out*/ CodaFid *VFid);
38int venus_open(void *mdp, CodaFid *fid, int flag, struct ucred *cred,
39 struct proc *p, /*out*/ struct vnode **vp);
40int venus_close(void *mdp, CodaFid *fid, int flag, struct ucred *cred,
41 struct proc *p);
42void venus_read(void);
43void venus_write(void);
44int venus_ioctl(void *mdp, CodaFid *fid, int com, int flag, caddr_t data,
45 struct ucred *cred, struct proc *p);
46int venus_getattr(void *mdp, CodaFid *fid, struct ucred *cred,
47 struct proc *p, /*out*/ struct vattr *vap);
48int venus_setattr(void *mdp, CodaFid *fid, struct vattr *vap,
49 struct ucred *cred, struct proc *p);
50int venus_access(void *mdp, CodaFid *fid, int mode, struct ucred *cred,
51 struct proc *p);
52int venus_readlink(void *mdp, CodaFid *fid, struct ucred *cred,
53 struct proc *p, /*out*/ char **str, int *len);
54int venus_fsync(void *mdp, CodaFid *fid, struct proc *p);
55int venus_lookup(void *mdp, CodaFid *fid, const char *nm, int len,
56 struct ucred *cred, struct proc *p, /*out*/ CodaFid *VFid,
57 int *vtype);
58int venus_create(void *mdp, CodaFid *fid, const char *nm, int len,
59 int exclusive, int mode, struct vattr *va, struct ucred *cred,
60 struct proc *p, /*out*/ CodaFid *VFid, struct vattr *attr);
61int venus_remove(void *mdp, CodaFid *fid, const char *nm, int len,
62 struct ucred *cred, struct proc *p);
63int venus_link(void *mdp, CodaFid *fid, CodaFid *tfid, const char *nm,
64 int len, struct ucred *cred, struct proc *p);
65int venus_rename(void *mdp, CodaFid *fid, CodaFid *tfid, const char *nm,
66 int len, const char *tnm, int tlen, struct ucred *cred,
67 struct proc *p);
68int venus_mkdir(void *mdp, CodaFid *fid, const char *nm, int len,
69 struct vattr *va, struct ucred *cred, struct proc *p,
70 /*out*/ CodaFid *VFid, struct vattr *ova);
71int venus_rmdir(void *mdp, CodaFid *fid, const char *nm, int len,
72 struct ucred *cred, struct proc *p);
73int venus_symlink(void *mdp, CodaFid *fid, const char *lnm, int llen,
74 const char *nm, int len, struct vattr *va, struct ucred *cred,
75 struct proc *p);
76int venus_readdir(void *mdp, CodaFid *fid, int count, int offset,
77 struct ucred *cred, struct proc *p, /*out*/ char *buffer,
78 int *len);
79int venus_fhtovp(void *mdp, CodaFid *fid, struct ucred *cred,
80 struct proc *p, /*out*/ CodaFid *VFid, int *vtype);
43
81
44int
45venus_close(void *mdp, CodaFid *fid, int flag,
46 struct ucred *cred, struct proc *p);
47
48void
49venus_read(void);
50
51void
52venus_write(void);
53
54int
55venus_ioctl(void *mdp, CodaFid *fid,
56 int com, int flag, caddr_t data,
57 struct ucred *cred, struct proc *p);
58
59int
60venus_getattr(void *mdp, CodaFid *fid,
61 struct ucred *cred, struct proc *p,
62/*out*/ struct vattr *vap);
63
64int
65venus_setattr(void *mdp, CodaFid *fid, struct vattr *vap,
66 struct ucred *cred, struct proc *p);
67
68int
69venus_access(void *mdp, CodaFid *fid, int mode,
70 struct ucred *cred, struct proc *p);
71
72int
73venus_readlink(void *mdp, CodaFid *fid,
74 struct ucred *cred, struct proc *p,
75/*out*/ char **str, int *len);
76
77int
78venus_fsync(void *mdp, CodaFid *fid, struct proc *p);
79
80int
81venus_lookup(void *mdp, CodaFid *fid,
82 const char *nm, int len,
83 struct ucred *cred, struct proc *p,
84/*out*/ CodaFid *VFid, int *vtype);
85
86int
87venus_create(void *mdp, CodaFid *fid,
88 const char *nm, int len, int exclusive, int mode, struct vattr *va,
89 struct ucred *cred, struct proc *p,
90/*out*/ CodaFid *VFid, struct vattr *attr);
91
92int
93venus_remove(void *mdp, CodaFid *fid,
94 const char *nm, int len,
95 struct ucred *cred, struct proc *p);
96
97int
98venus_link(void *mdp, CodaFid *fid, CodaFid *tfid,
99 const char *nm, int len,
100 struct ucred *cred, struct proc *p);
101
102int
103venus_rename(void *mdp, CodaFid *fid, CodaFid *tfid,
104 const char *nm, int len, const char *tnm, int tlen,
105 struct ucred *cred, struct proc *p);
106
107int
108venus_mkdir(void *mdp, CodaFid *fid,
109 const char *nm, int len, struct vattr *va,
110 struct ucred *cred, struct proc *p,
111/*out*/ CodaFid *VFid, struct vattr *ova);
112
113int
114venus_rmdir(void *mdp, CodaFid *fid,
115 const char *nm, int len,
116 struct ucred *cred, struct proc *p);
117
118int
119venus_symlink(void *mdp, CodaFid *fid,
120 const char *lnm, int llen, const char *nm, int len, struct vattr *va,
121 struct ucred *cred, struct proc *p);
122
123int
124venus_readdir(void *mdp, CodaFid *fid,
125 int count, int offset,
126 struct ucred *cred, struct proc *p,
127/*out*/ char *buffer, int *len);
128
129int
130venus_fhtovp(void *mdp, CodaFid *fid,
131 struct ucred *cred, struct proc *p,
132/*out*/ CodaFid *VFid, int *vtype);
82#endif /* !_CODA_VENUS_H_ */