Put the scheme (APM, GPT, etc) in the XML.

This commit is contained in:
Marcel Moolenaar 2007-04-27 05:58:10 +00:00
parent 2a3b7123e3
commit e8e1f54462
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169065

View file

@ -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,