summaryrefslogtreecommitdiffstats
path: root/sys/geom/uzip/g_uzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/uzip/g_uzip.c')
-rw-r--r--sys/geom/uzip/g_uzip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/geom/uzip/g_uzip.c b/sys/geom/uzip/g_uzip.c
index 99d7c22..90eee02 100644
--- a/sys/geom/uzip/g_uzip.c
+++ b/sys/geom/uzip/g_uzip.c
@@ -363,6 +363,11 @@ g_uzip_taste(struct g_class *mp, struct g_provider *pp, int flags)
g_trace(G_T_TOPOLOGY, "g_uzip_taste(%s,%s)", mp->name, pp->name);
g_topology_assert();
+
+ /* Skip providers that are already open for writing. */
+ if (pp->acw > 0)
+ return (NULL);
+
buf = NULL;
/*
OpenPOWER on IntegriCloud