summaryrefslogtreecommitdiffstats
path: root/sys/geom/shsec/g_shsec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/shsec/g_shsec.c')
-rw-r--r--sys/geom/shsec/g_shsec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/geom/shsec/g_shsec.c b/sys/geom/shsec/g_shsec.c
index 96650cf..7be39bb 100644
--- a/sys/geom/shsec/g_shsec.c
+++ b/sys/geom/shsec/g_shsec.c
@@ -638,6 +638,10 @@ g_shsec_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
g_trace(G_T_TOPOLOGY, "%s(%s, %s)", __func__, mp->name, pp->name);
g_topology_assert();
+ /* Skip providers that are already open for writing. */
+ if (pp->acw > 0)
+ return (NULL);
+
G_SHSEC_DEBUG(3, "Tasting %s.", pp->name);
gp = g_new_geomf(mp, "shsec:taste");
OpenPOWER on IntegriCloud