diff options
author | marcel <marcel@FreeBSD.org> | 2008-06-12 06:26:36 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-06-12 06:26:36 +0000 |
commit | a38655dc5ceeffff4b87494ebe90db4693cdad53 (patch) | |
tree | 7297238c6d210e01d50cb8dec4de440d21bab4f8 /sys/geom/part | |
parent | d62c85e04f72ba23c0caf6376f5f9d5d1ccfab47 (diff) | |
download | FreeBSD-src-a38655dc5ceeffff4b87494ebe90db4693cdad53.zip FreeBSD-src-a38655dc5ceeffff4b87494ebe90db4693cdad53.tar.gz |
Add the raw partition type to the XML.
Diffstat (limited to 'sys/geom/part')
-rw-r--r-- | sys/geom/part/g_part_pc98.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/geom/part/g_part_pc98.c b/sys/geom/part/g_part_pc98.c index 0c98241..ff7e984 100644 --- a/sys/geom/part/g_part_pc98.c +++ b/sys/geom/part/g_part_pc98.c @@ -242,12 +242,19 @@ g_part_pc98_dumpconf(struct g_part_table *table, { struct g_part_pc98_entry *entry; u_int type; - if (indent != NULL) - return (0); entry = (struct g_part_pc98_entry *)baseentry; - type = entry->ent.dp_mid + (entry->ent.dp_sid << 8); - sbuf_printf(sb, " xs PC98 xt %u", type); + if (indent == NULL) { + /* conftxt: libdisk compatibility */ + type = entry->ent.dp_mid + (entry->ent.dp_sid << 8); + sbuf_printf(sb, " xs PC98 xt %u", type); + } else if (entry != NULL) { + /* confxml: partition entry information */ + type = entry->ent.dp_mid + (entry->ent.dp_sid << 8); + sbuf_printf(sb, "%s<rawtype>%u</rawtype>\n", indent, type); + } else { + /* confxml: scheme information */ + } return (0); } |