aboutsummaryrefslogtreecommitdiff
path: root/sbin/geom
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2010-01-17 06:20:30 +0000
committerXin LI <delphij@FreeBSD.org>2010-01-17 06:20:30 +0000
commit35daa28f3031346789031e54a5ab494452634cfc (patch)
treeeddbf7d4c94dd7c16658d16b0e3f9612ebc27ff9 /sbin/geom
parentf212a61d5f39eb65fbabff6c6f76ac6ed089da63 (diff)
downloadsrc-35daa28f3031346789031e54a5ab494452634cfc.tar.gz
src-35daa28f3031346789031e54a5ab494452634cfc.zip
Expose stripe offset and stripe size through libgeom and geom(8) userland
utilities. Reviewed by: pjd, mav (earlier version)
Notes
Notes: svn path=/head/; revision=202454
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/core/geom.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c
index 7f2a281be992..c364d92f9bd7 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) {