mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
openbsd-20030926
check for (v_type == VNON) from VFS_VGET in UFSOpen remove dead prototypes from osi_vnodeops.c
This commit is contained in:
parent
b39bf74e58
commit
d4d4680f40
@ -38,6 +38,8 @@ osi_UFSOpen(afs_int32 ainode)
|
||||
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");
|
||||
|
@ -214,23 +214,6 @@ int afs_debug;
|
||||
#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 /* {
|
||||
|
Loading…
Reference in New Issue
Block a user