Make the last commit handle non-phk root devices better.

This commit is contained in:
phk 2004-07-04 19:42:25 +00:00
parent 7662db4aa1
commit 59c88fd71a
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}