Create a correctly sized vnode objects for disk devices.

This commit is contained in:
Poul-Henning Kamp 2005-01-24 22:41:21 +00:00
parent b5b6ec5faa
commit bc0fc6fcc3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140773

View file

@ -141,6 +141,7 @@ g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr
g_wither_geom(gp, ENXIO);
return (error);
}
vnode_create_vobject(vp, pp->mediasize, curthread);
*cpp = cp;
bo = &vp->v_bufobj;
bo->bo_ops = g_vfs_bufops;