In specfs::vop_specstratey(), assert that the vnode and buffer agree about
the device.
This commit is contained in:
parent
86479a0840
commit
e04393d6de
@ -522,6 +522,10 @@ spec_specstrategy(ap)
|
||||
} */ *ap;
|
||||
{
|
||||
|
||||
KASSERT(ap->a_vp->v_rdev == ap->a_bp->b_dev,
|
||||
("%s, dev %s != %s", __func__,
|
||||
devtoname(ap->a_vp->v_rdev),
|
||||
devtoname(ap->a_bp->b_dev)));
|
||||
return spec_xstrategy(ap->a_vp, ap->a_bp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user