summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index a233c5a..a7d3fc8 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -863,8 +863,10 @@ getnewvnode(tag, mp, vops, vpp)
printf("NULL mp in getnewvnode()\n");
#endif
delmntque(vp);
- if (mp != NULL)
+ if (mp != NULL) {
insmntque(vp, mp);
+ bo->bo_bsize = mp->mnt_stat.f_iosize;
+ }
return (0);
}
@@ -1812,6 +1814,7 @@ bdevvp(dev, vpp)
}
vp = nvp;
vp->v_type = VCHR;
+ vp->v_bufobj.bo_bsize = DEV_BSIZE;
addalias(vp, dev);
*vpp = vp;
return (0);
OpenPOWER on IntegriCloud