diff options
author | marcel <marcel@FreeBSD.org> | 2008-06-12 05:56:03 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-06-12 05:56:03 +0000 |
commit | d62c85e04f72ba23c0caf6376f5f9d5d1ccfab47 (patch) | |
tree | aea835d8425aa4c30ef450db543e458c673898d9 /sys/geom | |
parent | d210ed3b77ff848367902abc59341746d906fb31 (diff) | |
download | FreeBSD-src-d62c85e04f72ba23c0caf6376f5f9d5d1ccfab47.zip FreeBSD-src-d62c85e04f72ba23c0caf6376f5f9d5d1ccfab47.tar.gz |
Add the raw partition type to the XML.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/part/g_part_mbr.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/geom/part/g_part_mbr.c b/sys/geom/part/g_part_mbr.c index b4c625d..8987780 100644 --- a/sys/geom/part/g_part_mbr.c +++ b/sys/geom/part/g_part_mbr.c @@ -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); } |