Add the raw partition type to the XML.
This commit is contained in:
parent
0c132595dd
commit
a3354bb4a7
@ -254,11 +254,17 @@ g_part_mbr_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry,
|
||||
{
|
||||
struct g_part_mbr_entry *entry;
|
||||
|
||||
if (indent != NULL)
|
||||
return (0);
|
||||
|
||||
entry = (struct g_part_mbr_entry *)baseentry;
|
||||
sbuf_printf(sb, " xs MBR xt %u", entry->ent.dp_typ);
|
||||
if (indent == NULL) {
|
||||
/* conftxt: libdisk compatibility */
|
||||
sbuf_printf(sb, " xs MBR xt %u", entry->ent.dp_typ);
|
||||
} else if (entry != NULL) {
|
||||
/* confxml: partition entry information */
|
||||
sbuf_printf(sb, "%s<rawtype>%u</rawtype>\n", indent,
|
||||
entry->ent.dp_typ);
|
||||
} else {
|
||||
/* confxml: scheme information */
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user