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

the device.
This commit is contained in:
phk 2003-06-15 20:31:04 +00:00
parent 565c7c3ab6
commit 55d514176c

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