aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/geom/geom_dump.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c
index fd7001f65787..1f00db9de171 100644
--- a/sys/geom/geom_dump.c
+++ b/sys/geom/geom_dump.c
@@ -145,11 +145,10 @@ g_conftxt(void *p, int flag)
KASSERT(flag != EV_CANCEL, ("g_conftxt was cancelled"));
sb = p;
g_topology_assert();
- LIST_FOREACH(mp, &g_classes, class)
- if (!strcmp(mp->name, "DISK"))
- break;
- if (mp != NULL)
- g_conftxt_class(sb, mp);
+ LIST_FOREACH(mp, &g_classes, class) {
+ if (!strcmp(mp->name, "DISK") || !strcmp(mp->name, "MD"))
+ g_conftxt_class(sb, mp);
+ }
sbuf_finish(sb);
}