summaryrefslogtreecommitdiffstats
path: root/sys/geom/mirror/g_mirror.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/mirror/g_mirror.c')
-rw-r--r--sys/geom/mirror/g_mirror.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index 4e7297e..5cf1d58 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -2430,7 +2430,8 @@ g_mirror_access(struct g_provider *pp, int acr, int acw, int ace)
ace--;
sc = pp->geom->softc;
- if (sc == NULL || LIST_EMPTY(&sc->sc_disks)) {
+ if (sc == NULL || LIST_EMPTY(&sc->sc_disks) ||
+ (sc->sc_flags & G_MIRROR_DEVICE_FLAG_DESTROY) != 0) {
if (acr <= 0 && acw <= 0 && ace <= 0)
return (0);
else
OpenPOWER on IntegriCloud