Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jun 2011 12:49:46 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222603 - head/sys/geom
Message-ID:  <201106021249.p52Cnksu017847@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Thu Jun  2 12:49:45 2011
New Revision: 222603
URL: http://svn.freebsd.org/changeset/base/222603

Log:
  Do not hide stripeoffset from libgeom(3), it may be useful even when
  stripesize is zero.
  
  MFC after:	1 week

Modified:
  head/sys/geom/geom_dump.c

Modified: head/sys/geom/geom_dump.c
==============================================================================
--- head/sys/geom/geom_dump.c	Thu Jun  2 10:21:05 2011	(r222602)
+++ head/sys/geom/geom_dump.c	Thu Jun  2 12:49:45 2011	(r222603)
@@ -207,10 +207,8 @@ g_conf_provider(struct sbuf *sb, struct 
 	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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106021249.p52Cnksu017847>