aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2007-04-27 05:58:10 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2007-04-27 05:58:10 +0000
commite8e1f544629b6d78129749117b93d7e918d30d7f (patch)
tree1b3ab243ec019199e9cd825d8e548abe2c241042 /sys/geom
parent2a3b7123e368da6af7eab2e65bc4105ec8f0a812 (diff)
downloadsrc-e8e1f544629b6d78129749117b93d7e918d30d7f.tar.gz
src-e8e1f544629b6d78129749117b93d7e918d30d7f.zip
Put the scheme (APM, GPT, etc) in the XML.
Notes
Notes: svn path=/head/; revision=169065
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/part/g_part.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c
index 2293e219af0e..2ccfe91b8c46 100644
--- a/sys/geom/part/g_part.c
+++ b/sys/geom/part/g_part.c
@@ -52,7 +52,7 @@ static kobj_method_t g_part_null_methods[] = {
};
static struct g_part_scheme g_part_null_scheme = {
- NULL,
+ "n/a",
g_part_null_methods,
sizeof(struct g_part_table),
};
@@ -1249,6 +1249,8 @@ g_part_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp,
(uintmax_t)pp->mediasize);
G_PART_DUMPCONF(table, entry, sb, indent);
} else { /* Geom configuration. */
+ sbuf_printf(sb, "%s<scheme>%s</scheme>\n", indent,
+ table->gpt_scheme->name);
sbuf_printf(sb, "%s<entries>%u</entries>\n", indent,
table->gpt_entries);
sbuf_printf(sb, "%s<first>%ju</first>\n", indent,