aboutsummaryrefslogtreecommitdiff
path: root/lib/libgeom/geom_xml2tree.c
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 /lib/libgeom/geom_xml2tree.c
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 'lib/libgeom/geom_xml2tree.c')
-rw-r--r--lib/libgeom/geom_xml2tree.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
index 1c7e22b56895..821449b66ca8 100644
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -230,6 +230,16 @@ EndElement(void *userData, const char *name)
free(p);
return;
}
+ if (!strcmp(name, "stripesize") && mt->provider != NULL) {
+ mt->provider->lg_stripesize = strtoumax(p, NULL, 0);
+ free(p);
+ return;
+ }
+ if (!strcmp(name, "stripeoffset") && mt->provider != NULL) {
+ mt->provider->lg_stripeoffset = strtoumax(p, NULL, 0);
+ free(p);
+ return;
+ }
if (!strcmp(name, "config")) {
mt->config = NULL;