mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
Create a correctly sized vnode objects for disk devices.
This commit is contained in:
parent
b5b6ec5faa
commit
bc0fc6fcc3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140773
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue