In specfs::vop_specstratey(), assert that the vnode and buffer agree about
the device.
This commit is contained in:
parent
565c7c3ab6
commit
55d514176c
@ -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