diff options
author | delphij <delphij@FreeBSD.org> | 2010-01-17 06:20:30 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-01-17 06:20:30 +0000 |
commit | 16c4a5ec2099b564a3372fead91070ad8816723a (patch) | |
tree | eddbf7d4c94dd7c16658d16b0e3f9612ebc27ff9 /sbin/geom/core | |
parent | 7cef302ab8816e0aac85ec3070022921b840af26 (diff) | |
download | FreeBSD-src-16c4a5ec2099b564a3372fead91070ad8816723a.zip FreeBSD-src-16c4a5ec2099b564a3372fead91070ad8816723a.tar.gz |
Expose stripe offset and stripe size through libgeom and geom(8) userland
utilities.
Reviewed by: pjd, mav (earlier version)
Diffstat (limited to 'sbin/geom/core')
-rw-r--r-- | sbin/geom/core/geom.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c index 7f2a281..c364d92 100644 --- a/sbin/geom/core/geom.c +++ b/sbin/geom/core/geom.c @@ -772,6 +772,10 @@ 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) { + printf("%sStripesize: %ju\n", prefix, pp->lg_stripesize); + printf("%sStripeoffset: %ju\n", prefix, pp->lg_stripeoffset); + } printf("%sMode: %s\n", prefix, pp->lg_mode); LIST_FOREACH(conf, &pp->lg_config, lg_config) { printf("%s%s: %s\n", prefix, conf->lg_name, conf->lg_val); @@ -796,6 +800,10 @@ list_one_consumer(struct gconsumer *cp, 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) { + printf("%sStripesize: %ju\n", prefix, pp->lg_stripesize); + printf("%sStripeoffset: %ju\n", prefix, pp->lg_stripeoffset); + } printf("%sMode: %s\n", prefix, cp->lg_mode); } LIST_FOREACH(conf, &cp->lg_config, lg_config) { |