Sync with ufs_vnops.c:1.245 and remove support for accessing device nodes
in ISO 9660 filesystems.
This commit is contained in:
parent
f8b1ea1737
commit
04c98d464f
@ -168,10 +168,14 @@ cd9660_open(ap)
|
|||||||
int a_fdidx;
|
int a_fdidx;
|
||||||
} */ *ap;
|
} */ *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);
|
if (vp->v_type == VCHR || vp->v_type == VBLK)
|
||||||
return 0;
|
return (EOPNOTSUPP);
|
||||||
|
|
||||||
|
vnode_create_vobject(vp, ip->i_size, ap->a_td);
|
||||||
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user