summaryrefslogtreecommitdiffstats
path: root/sys/geom/label/g_label.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/label/g_label.c')
-rw-r--r--sys/geom/label/g_label.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/geom/label/g_label.c b/sys/geom/label/g_label.c
index 0a22dcf..e39c233 100644
--- a/sys/geom/label/g_label.c
+++ b/sys/geom/label/g_label.c
@@ -271,6 +271,10 @@ g_label_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
G_LABEL_DEBUG(2, "Tasting %s.", pp->name);
+ /* Skip providers that are already open for writing. */
+ if (pp->acw > 0)
+ return (NULL);
+
if (strcmp(pp->geom->class->name, mp->name) == 0)
return (NULL);
OpenPOWER on IntegriCloud