diff options
author | phk <phk@FreeBSD.org> | 2003-06-15 20:31:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-06-15 20:31:04 +0000 |
commit | 55d514176c0ea6e1e99147aa9ef35ea91b5cdd9b (patch) | |
tree | 85fdde7d6f5d9ef38ddd95d7ae9611437d051bd7 /sys/fs | |
parent | 565c7c3ab6d03522cea99f1743295cdf73ee599a (diff) | |
download | FreeBSD-src-55d514176c0ea6e1e99147aa9ef35ea91b5cdd9b.zip FreeBSD-src-55d514176c0ea6e1e99147aa9ef35ea91b5cdd9b.tar.gz |
In specfs::vop_specstratey(), assert that the vnode and buffer agree about
the device.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 0267bc1..5f54f5d 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -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); } |