diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-02-09 12:49:18 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-02-09 12:49:18 +0000 |
commit | 5b9b5c8121bf0edacdab9359bc8536551869a07d (patch) | |
tree | 372cda7b33f7c084cafb167d7cbd1a5f86fea525 /sys/fs/coda/coda_vnops.c | |
parent | f2fd79dc062d4cbd8747964912ab80b313154d42 (diff) | |
download | FreeBSD-src-5b9b5c8121bf0edacdab9359bc8536551869a07d.zip FreeBSD-src-5b9b5c8121bf0edacdab9359bc8536551869a07d.tar.gz |
Various further non-functional cleanups to coda:
- Rename print_vattr to coda_print_vattr and make static, rename
print_cred to coda_print_cred.
- Remove unused coda_vop_nop.
- Add XXX comment because coda_readdir forwards to the cache vnode's
readdir rather than venus_readdir, and annotate venus_readdir as
unused.
- Rename vc_nb_* to vc_*.
- Use d_open_t, d_close_t, d_read_t, d_write_t, d_ioctl_t and d_poll_t
for prototyping vc_* as that is the intent, don't use our own
definitions.
- Rename coda_nb_statfs to coda_statfs, rename NB_SFS_SIZ to
CODA_SFS_SIZ.
- Replace one more OBE reference to NetBSD with a reference to FreeBSD.
- Tidy up a little vertical whitespace here and there.
- Annotate coda_nc_zapvnode as unused.
- Remove unused vcodattach.
- Annotate VM_INTR as unused.
- Annotate that coda_fhtovp is unused and doesn't match the FreeBSD
prototype, so isn't hooked up to vfs_fhtovp. If we want NFS export of
Coda to work someday, this needs to be fixed.
- Remove unused getNewVnode.
- Remove unused coda_vget, coda_init, coda_quotactl prototypes.
MFC after: 1 month
Diffstat (limited to 'sys/fs/coda/coda_vnops.c')
-rw-r--r-- | sys/fs/coda/coda_vnops.c | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index 297a2dd..3206268 100644 --- a/sys/fs/coda/coda_vnops.c +++ b/sys/fs/coda/coda_vnops.c @@ -146,17 +146,7 @@ struct vop_vector coda_vnodeops = { }; -/* A generic do-nothing. For lease_check, advlock */ -int -coda_vop_nop(void *anon) { - struct vnodeop_desc **desc = (struct vnodeop_desc **)anon; - - if (codadebug) { - myprintf(("Vnode operation %s called, but unsupported\n", - (*desc)->vdesc_name)); - } - return (0); -} +static void coda_print_vattr(struct vattr *attr); int coda_vnodeopstats_init(void) @@ -390,8 +380,6 @@ coda_rdwr(struct vnode *vp, struct uio *uiop, enum uio_rw rw, int ioflag, return(error); } - - int coda_ioctl(struct vop_ioctl_args *ap) { @@ -504,7 +492,7 @@ coda_getattr(struct vop_getattr_args *ap) CODADEBUG(CODA_GETATTR, { myprintf(("attr cache hit: %s\n", coda_f2s(&cp->c_fid)));}); CODADEBUG(CODA_GETATTR, if (!(codadebug & ~CODA_GETATTR)) - print_vattr(&cp->c_vattr); ); + coda_print_vattr(&cp->c_vattr); ); *vap = cp->c_vattr; MARK_INT_SAT(CODA_GETATTR_STATS); @@ -518,7 +506,7 @@ coda_getattr(struct vop_getattr_args *ap) coda_f2s(&cp->c_fid), error)); ) CODADEBUG(CODA_GETATTR, if (!(codadebug & ~CODA_GETATTR)) - print_vattr(vap); ); + coda_print_vattr(vap); ); { int size = vap->va_size; struct vnode *convp = cp->c_ovp; @@ -557,7 +545,7 @@ coda_setattr(struct vop_setattr_args *ap) } if (codadebug & CODADBGMSK(CODA_SETATTR)) { - print_vattr(vap); + coda_print_vattr(vap); } error = venus_setattr(vtomi(vp), &cp->c_fid, vap, cred, td->td_proc); @@ -1422,6 +1410,9 @@ coda_symlink(struct vop_symlink_args *ap) /* * Read directory entries. + * + * XXXRW: This forwards the operator straight to the cache vnode using + * VOP_READDIR(), rather than calling venus_readdir(). Why? */ int coda_readdir(struct vop_readdir_args *ap) @@ -1577,8 +1568,8 @@ coda_islocked(struct vop_islocked_args *ap) return (vop_stdislocked(ap)); } -void -print_vattr(struct vattr *attr) +static void +coda_print_vattr(struct vattr *attr) { char *typestr; @@ -1636,7 +1627,7 @@ print_vattr(struct vattr *attr) /* How to print a ucred */ void -print_cred(struct ucred *cred) +coda_print_cred(struct ucred *cred) { int i; |