Stripe offset may be usable even without stripe size known,

so give the output when either is non-zero.

Suggested by:	mav
This commit is contained in:
Xin LI 2010-01-17 08:10:37 +00:00
parent 35daa28f30
commit e192c6e8e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202457

View File

@ -772,7 +772,7 @@ list_one_provider(struct gprovider *pp, const char *prefix)
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);
}