2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include "../afs/param.h" /* Should be always first */
11 #include "../afs/sysincludes.h" /* Standard vendor system headers */
12 #include "../afs/afsincludes.h" /* Afs-based standard headers */
13 #include "../afs/afs_stats.h" /* statistics */
15 extern int afs_noop();
16 extern int afs_badop();
18 extern int afs_open();
19 extern int afs_close();
20 extern int afs_getattr();
21 extern int afs_setattr();
22 extern int afs_access();
23 extern int afs_lookup();
24 extern int afs_create();
25 extern int afs_remove();
26 extern int afs_link();
27 extern int afs_rename();
28 extern int afs_mkdir();
29 extern int afs_rmdir();
30 extern int afs_readdir();
31 extern int afs_symlink();
32 extern int afs_readlink();
33 extern int afs_fsync();
34 extern int afs_lockctl();
38 struct usr_vnode *avc,
42 struct usr_ucred* cred)
46 if (rw == UIO_WRITE) {
47 rc = afs_write(avc, uio, io, cred, 0);
49 rc = afs_read(avc, uio, cred, 0, 0, 0);
55 int afs_inactive(struct vcache *avc, struct AFS_UCRED *acred)
57 struct vnode *vp = (struct vnode *)avc;
58 if (afs_shuttingdown) return ;
60 usr_assert(avc->vrefCount == 0);
61 afs_InactiveVCache(avc, acred);
64 struct usr_vnodeops Afs_vnodeops = {
68 afs_badop, /* ioctl */
69 afs_noop, /* select */
86 afs_badop, /* strategy */
87 afs_badop, /* bread */
88 afs_badop, /* brelse */
93 struct usr_vnodeops *afs_ops = &Afs_vnodeops;