summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2011-06-02 12:49:45 +0000
committerae <ae@FreeBSD.org>2011-06-02 12:49:45 +0000
commiteb839461eb03a7ae7c9565b5015ba0f28592c23b (patch)
treee2bf01a2080132a4b2573acdd3785ad9370d1543 /sys/geom
parente77a9406e33c7ef66f169e69cc4c6207b7d52509 (diff)
downloadFreeBSD-src-eb839461eb03a7ae7c9565b5015ba0f28592c23b.zip
FreeBSD-src-eb839461eb03a7ae7c9565b5015ba0f28592c23b.tar.gz
Do not hide stripeoffset from libgeom(3), it may be useful even when
stripesize is zero. MFC after: 1 week
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_dump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c
index d1e56d6..6f678cf 100644
--- a/sys/geom/geom_dump.c
+++ b/sys/geom/geom_dump.c
@@ -207,10 +207,8 @@ g_conf_provider(struct sbuf *sb, struct g_provider *pp)
sbuf_printf(sb, "\t <mediasize>%jd</mediasize>\n",
(intmax_t)pp->mediasize);
sbuf_printf(sb, "\t <sectorsize>%u</sectorsize>\n", pp->sectorsize);
- if (pp->stripesize > 0) {
- sbuf_printf(sb, "\t <stripesize>%u</stripesize>\n", pp->stripesize);
- sbuf_printf(sb, "\t <stripeoffset>%u</stripeoffset>\n", pp->stripeoffset);
- }
+ 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)
;
else if (pp->geom->dumpconf != NULL) {
OpenPOWER on IntegriCloud