diff options
-rw-r--r-- | sys/kern/vfs_bio.c | 1 | ||||
-rw-r--r-- | sys/kern/vfs_subr.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 6050c07..ba939fe 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -2573,6 +2573,7 @@ loop: if (vp->v_bsize != bsize) { printf("WARNING: Wrong block size on vnode: %d should be %d\n", vp->v_bsize, bsize); vprint("Please email phk@FreeBSD.org this info\n", vp); + vp->v_bsize = bsize; } offset = blkno * bsize; diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index a1cfdaa..7e56575 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -839,9 +839,10 @@ getnewvnode(tag, mp, vops, vpp) mac_associate_vnode_singlelabel(mp, vp); #endif delmntque(vp); - if (mp != NULL) + if (mp != NULL) { insmntque(vp, mp); - vp->v_bsize = mp->mnt_stat.f_iosize; + vp->v_bsize = mp->mnt_stat.f_iosize; + } return (0); } |