From 03dd7e11dbd3c91fb1b499b151401ccfe9610304 Mon Sep 17 00:00:00 2001 From: mav Date: Sat, 26 Nov 2016 07:59:57 +0000 Subject: [PATCH] MFC r308579: Do not report error on close even if we have no paths left. git-svn-id: svn://svn.freebsd.org/base/stable/10@309186 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/geom/multipath/g_multipath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c index 6644532d0..b461747bf 100644 --- a/sys/geom/multipath/g_multipath.c +++ b/sys/geom/multipath/g_multipath.c @@ -470,7 +470,7 @@ g_multipath_access(struct g_provider *pp, int dr, int dw, int de) gp = pp->geom; /* Error used if we have no valid consumers. */ - error = ENXIO; + error = (dr > 0 || dw > 0 || de > 0) ? ENXIO : 0; LIST_FOREACH(cp, &gp->consumer, consumer) { if (cp->index & MP_WITHER) -- 2.45.0