From 515fa5ff2e4db907379c284fb7e7df77b4096948 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 25 Oct 2025 12:17:02 +0300 Subject: [PATCH] geom/geom_vfs.c: use EXTERROR_KE() in g_vfs_strategy for ENXIOs As an example of use for the bp_exterr infrastructure. Reviewed by: mckusick Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D53351 --- sys/geom/geom_vfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/geom/geom_vfs.c b/sys/geom/geom_vfs.c index f074ac43d24..122e2f6a02e 100644 --- a/sys/geom/geom_vfs.c +++ b/sys/geom/geom_vfs.c @@ -200,6 +200,8 @@ g_vfs_strategy(struct bufobj *bo, struct buf *bp) mtx_unlock(&sc->sc_mtx); bp->b_error = ENXIO; bp->b_ioflags |= BIO_ERROR; + EXTERROR_KE(&bp->b_exterr, ENXIO, + "orphaned or enxio active"); bufdone(bp); return; }