Also output stripeoffset for consumer even if stripesize is zero, while
stripeoffset is non-zero. Pointed out by: mav
This commit is contained in:
parent
9e515b1d82
commit
00b236aac2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202586
@ -800,7 +800,7 @@ list_one_consumer(struct gconsumer *cp, const char *prefix)
|
|||||||
printf("%sMediasize: %jd (%s)\n", prefix,
|
printf("%sMediasize: %jd (%s)\n", prefix,
|
||||||
(intmax_t)pp->lg_mediasize, buf);
|
(intmax_t)pp->lg_mediasize, buf);
|
||||||
printf("%sSectorsize: %u\n", prefix, pp->lg_sectorsize);
|
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("%sStripesize: %ju\n", prefix, pp->lg_stripesize);
|
||||||
printf("%sStripeoffset: %ju\n", prefix, pp->lg_stripeoffset);
|
printf("%sStripeoffset: %ju\n", prefix, pp->lg_stripeoffset);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user