Make the last commit handle non-phk root devices better.
This commit is contained in:
parent
e1906bda7b
commit
7f6599fec6
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user