Fix this:
kern/87959 cracauer ext2fs: no cp(1) possible, mmap returns EINVAL ext2fs was missing vnode_create_vobject. (Reisefs probably has the same problem but I want to get this in quick for 6-release)
This commit is contained in:
parent
b2f153feaf
commit
12c8305335
@ -237,9 +237,8 @@ ext2_create(ap)
|
||||
|
||||
/*
|
||||
* Open called.
|
||||
*
|
||||
* Nothing to do.
|
||||
*/
|
||||
|
||||
static int
|
||||
ext2_open(ap)
|
||||
struct vop_open_args /* {
|
||||
@ -249,6 +248,8 @@ ext2_open(ap)
|
||||
struct thread *a_td;
|
||||
} */ *ap;
|
||||
{
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct inode *ip = VTOI(vp);
|
||||
|
||||
if (ap->a_vp->v_type == VBLK || ap->a_vp->v_type == VCHR)
|
||||
return (EOPNOTSUPP);
|
||||
@ -259,6 +260,9 @@ ext2_open(ap)
|
||||
if ((VTOI(ap->a_vp)->i_flags & APPEND) &&
|
||||
(ap->a_mode & (FWRITE | O_APPEND)) == FWRITE)
|
||||
return (EPERM);
|
||||
|
||||
vnode_create_vobject(ap->a_vp, ip->i_size, ap->a_td);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user