Sync with ufs_vnops.c:1.245 and remove support for accessing device nodes

in ISO 9660 filesystems.
This commit is contained in:
John Baldwin 2009-01-28 18:46:29 +00:00
parent f8b1ea1737
commit 04c98d464f

View File

@ -168,10 +168,14 @@ cd9660_open(ap)
int a_fdidx;
} */ *ap;
{
struct iso_node *ip = VTOI(ap->a_vp);
struct vnode *vp = ap->a_vp;
struct iso_node *ip = VTOI(vp);
vnode_create_vobject(ap->a_vp, ip->i_size, ap->a_td);
return 0;
if (vp->v_type == VCHR || vp->v_type == VBLK)
return (EOPNOTSUPP);
vnode_create_vobject(vp, ip->i_size, ap->a_td);
return (0);
}