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

bypass specfs.
This commit is contained in:
Poul-Henning Kamp 2002-11-01 15:56:26 +00:00
parent a959270a4b
commit b630d83f28
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106300

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;