mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
76ffeff6bd
commit
62104e9446
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue