diff options
author | marcel <marcel@FreeBSD.org> | 2008-06-12 05:27:23 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-06-12 05:27:23 +0000 |
commit | 169adaca5e7035f357df3db94920b11459a21554 (patch) | |
tree | 9038500abebaa8b2523bae129a5e9bc166130099 /sys/geom | |
parent | 8ef896c2f8cc82ae0e2692f3abcb728e71ca5c49 (diff) | |
download | FreeBSD-src-169adaca5e7035f357df3db94920b11459a21554.zip FreeBSD-src-169adaca5e7035f357df3db94920b11459a21554.tar.gz |
Add the raw partition type to the XML.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/part/g_part_bsd.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/geom/part/g_part_bsd.c b/sys/geom/part/g_part_bsd.c index 24f896e..228c465 100644 --- a/sys/geom/part/g_part_bsd.c +++ b/sys/geom/part/g_part_bsd.c @@ -222,11 +222,17 @@ g_part_bsd_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry, { struct g_part_bsd_entry *entry; - if (indent != NULL) - return (0); - entry = (struct g_part_bsd_entry *)baseentry; - sbuf_printf(sb, " xs BSD xt %u", entry->part.p_fstype); + if (indent == NULL) { + /* conftxt: libdisk compatibility */ + sbuf_printf(sb, " xs BSD xt %u", entry->part.p_fstype); + } else if (entry != NULL) { + /* confxml: partition entry information */ + sbuf_printf(sb, "%s<rawtype>%u</rawtype>\n", indent, + entry->part.p_fstype); + } else { + /* confxml: scheme information */ + } return (0); } |