Date: Sun, 17 Jan 2010 08:10:37 +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: r202457 - head/sbin/geom/core Message-ID: <201001170810.o0H8AbRN057735@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Sun Jan 17 08:10:37 2010 New Revision: 202457 URL: http://svn.freebsd.org/changeset/base/202457 Log: Stripe offset may be usable even without stripe size known, so give the output when either is non-zero. Suggested by: mav Modified: head/sbin/geom/core/geom.c Modified: head/sbin/geom/core/geom.c ============================================================================== --- head/sbin/geom/core/geom.c Sun Jan 17 06:24:24 2010 (r202456) +++ head/sbin/geom/core/geom.c Sun Jan 17 08:10:37 2010 (r202457) @@ -772,7 +772,7 @@ list_one_provider(struct gprovider *pp, 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?201001170810.o0H8AbRN057735>