Page MenuHomeFreeBSD

D35034.id105348.diff
No OneTemporary

D35034.id105348.diff

Index: sys/geom/geom_vfs.c
===================================================================
--- sys/geom/geom_vfs.c
+++ sys/geom/geom_vfs.c
@@ -57,6 +57,7 @@
int sc_active;
bool sc_orphaned;
bool sc_enxio_active;
+ bool sc_enxio_reported;
};
static struct buf_ops __g_vfs_bufops = {
@@ -152,8 +153,14 @@
}
if (sc->sc_enxio_active)
bip->bio_error = ENXIO;
- g_print_bio("g_vfs_done():", bip, "error = %d",
- bip->bio_error);
+ if (bip->bio_error != ENXIO || !sc->sc_enxio_reported) {
+ g_print_bio("g_vfs_done():", bip, "error = %d%s",
+ bip->bio_error,
+ bip->bio_error != ENXIO ? "" :
+ " supressing further ENXIO");
+ if (bip->bio_error == ENXIO)
+ sc->sc_enxio_reported = true;
+ }
}
bp->b_error = bip->bio_error;
bp->b_ioflags = bip->bio_flags;

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 22, 11:40 AM (13 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27844821
Default Alt Text
D35034.id105348.diff (819 B)

Event Timeline