Be less noisy when GEOM probes around during boot if drive contains

invalid media (ie empty CD/DVD)

Approved by: re@
This commit is contained in:
Søren Schmidt 2003-11-24 14:20:19 +00:00
parent 76ffeff6bd
commit 62104e9446

View file

@ -1000,6 +1000,11 @@ acd_geom_start(struct bio *bp)
return;
}
if (bp->bio_cmd == BIO_READ && cdp->disk_size == -1) {
g_io_deliver(bp, EIO);
return;
}
/* GEOM classes must do their own request limiting */
if (bp->bio_length <= cdp->iomax) {
mtx_lock(&cdp->queue_mtx);