diff options
Diffstat (limited to 'sys/geom/label/g_label.c')
-rw-r--r-- | sys/geom/label/g_label.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/label/g_label.c b/sys/geom/label/g_label.c index e39c233..48329aa 100644 --- a/sys/geom/label/g_label.c +++ b/sys/geom/label/g_label.c @@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$"); #include <sys/lock.h> #include <sys/mutex.h> #include <sys/bio.h> -#include <sys/sysctl.h> #include <sys/malloc.h> #include <sys/libkern.h> #include <geom/geom.h> @@ -316,6 +315,8 @@ g_label_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) for (i = 0; g_labels[i] != NULL; i++) { char label[64]; + if (g_labels[i]->ld_enabled == 0) + continue; g_topology_unlock(); g_labels[i]->ld_taste(cp, label, sizeof(label)); g_topology_lock(); |