Make the last commit handle non-phk root devices better.
This commit is contained in:
parent
7662db4aa1
commit
59c88fd71a
@ -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;
|
||||
|
@ -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…
x
Reference in New Issue
Block a user