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:
parent
35daa28f30
commit
e192c6e8e8
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user