In specfs::vop_specstratey(), assert that the vnode and buffer agree about

the device.
This commit is contained in:
Poul-Henning Kamp 2003-06-15 20:31:04 +00:00
parent 86479a0840
commit e04393d6de

View File

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