svn commit: r202457 - head/sbin/geom/core

Xin LI delphij at FreeBSD.org
Sun Jan 17 08:10:37 UTC 2010


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);
 	}


More information about the svn-src-all mailing list