diff options
author | mav <mav@FreeBSD.org> | 2015-03-26 11:19:24 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-03-26 11:19:24 +0000 |
commit | a8867c5ea6c39965acbf985bb2358e608e82077d (patch) | |
tree | d3eb43ebc388725e1548e0267067991f47bd3700 /sys/geom | |
parent | 4505b894814a9067c84c9a681fd3cd97589fa864 (diff) | |
download | FreeBSD-src-a8867c5ea6c39965acbf985bb2358e608e82077d.zip FreeBSD-src-a8867c5ea6c39965acbf985bb2358e608e82077d.tar.gz |
Report withered providers as such alike to GEOMs.
MFC after: 2 weeks
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_dump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c index 8ce237f..28649fe 100644 --- a/sys/geom/geom_dump.c +++ b/sys/geom/geom_dump.c @@ -216,7 +216,9 @@ g_conf_provider(struct sbuf *sb, struct g_provider *pp) sbuf_printf(sb, "\t <sectorsize>%u</sectorsize>\n", pp->sectorsize); sbuf_printf(sb, "\t <stripesize>%u</stripesize>\n", pp->stripesize); sbuf_printf(sb, "\t <stripeoffset>%u</stripeoffset>\n", pp->stripeoffset); - if (pp->geom->flags & G_GEOM_WITHER) + if (pp->flags & G_PF_WITHER) + sbuf_printf(sb, "\t <wither/>\n"); + else if (pp->geom->flags & G_GEOM_WITHER) ; else if (pp->geom->dumpconf != NULL) { sbuf_printf(sb, "\t <config>\n"); |