Add KASSERT for bio_cmd validity here as well. Various hacks still

bypass specfs.
This commit is contained in:
phk 2002-11-01 15:56:26 +00:00
parent 43abbe6909
commit 72c30b5844

View File

@ -380,6 +380,10 @@ g_dev_strategy(struct bio *bp)
struct bio *bp2;
dev_t dev;
KASSERT(bp->bio_cmd == BIO_READ ||
bp->bio_cmd == BIO_WRITE ||
bp->bio_cmd == BIO_DELETE,
("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd));
dev = bp->bio_dev;
gp = dev->si_drv1;
cp = dev->si_drv2;