Date: Mon, 18 Jan 2010 19:39:55 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r202586 - head/sbin/geom/core Message-ID: <201001181939.o0IJdtDE058648@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Jan 18 19:39:55 2010 New Revision: 202586 URL: http://svn.freebsd.org/changeset/base/202586 Log: Also output stripeoffset for consumer even if stripesize is zero, while stripeoffset is non-zero. Pointed out by: mav Modified: head/sbin/geom/core/geom.c Modified: head/sbin/geom/core/geom.c ============================================================================== --- head/sbin/geom/core/geom.c Mon Jan 18 19:10:14 2010 (r202585) +++ head/sbin/geom/core/geom.c Mon Jan 18 19:39:55 2010 (r202586) @@ -800,7 +800,7 @@ list_one_consumer(struct gconsumer *cp, printf("%sMediasize: %jd (%s)\n", prefix, (intmax_t)pp->lg_mediasize, buf); printf("%sSectorsize: %u\n", prefix, pp->lg_sectorsize); - if (pp->lg_stripesize > 0) { + if (pp->lg_stripesize > 0 || pp->lg_stripeoffset > 0) { printf("%sStripesize: %ju\n", prefix, pp->lg_stripesize); printf("%sStripeoffset: %ju\n", prefix, pp->lg_stripeoffset); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001181939.o0IJdtDE058648>