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

This commit is contained in:
Poul-Henning Kamp 2004-07-04 19:42:25 +00:00
parent e1906bda7b
commit 7f6599fec6
2 changed files with 4 additions and 2 deletions

View File

@ -2573,6 +2573,7 @@ getblk(struct vnode * vp, daddr_t blkno, int size, int slpflag, int slptimeo,
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);
}