check for (v_type == VNON) from VFS_VGET in UFSOpen
remove dead prototypes from osi_vnodeops.c
osi_Panic("UFSOpen called for non-UFS cache\n");
afile = (struct osi_file *)osi_AllocSmallSpace(sizeof(struct osi_file));
code = VFS_VGET(cacheDev.mp, (ino_t) ainode, &vp);
+ if (afile->vnode->v_type == VNON)
+ code = ENOENT;
if (code) {
osi_FreeSmallSpace(afile);
osi_Panic("UFSOpen: igetinode failed");
#undef VREF
#define VREF afs_nbsd_ref
-#if 0
-extern int afs_lookup();
-extern int afs_open();
-extern int afs_close();
-extern int HandleIoctl(struct vcache *avc, afs_int32 acom,
- struct afs_ioctl *adata);
-extern int afs_fsync();
-extern int afs_remove();
-extern int afs_link();
-extern int afs_rename();
-extern int afs_mkdir();
-extern int afs_rmdir();
-extern int afs_symlink();
-extern int afs_readdir();
-extern int afs_readlink();
-#endif
-
int
afs_nbsd_lookup(ap)
struct vop_lookup_args /* {