summaryrefslogtreecommitdiffstats
path: root/sys/geom/part
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/part')
-rw-r--r--sys/geom/part/g_part_vtoc8.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/geom/part/g_part_vtoc8.c b/sys/geom/part/g_part_vtoc8.c
index efe6d44..141d201 100644
--- a/sys/geom/part/g_part_vtoc8.c
+++ b/sys/geom/part/g_part_vtoc8.c
@@ -244,13 +244,19 @@ g_part_vtoc8_dumpconf(struct g_part_table *basetable,
{
struct g_part_vtoc8_table *table;
- if (indent != NULL)
- return (0);
-
table = (struct g_part_vtoc8_table *)basetable;
- sbuf_printf(sb, " xs SUN sc %u hd %u alt %u",
- be16dec(&table->vtoc.nsecs), be16dec(&table->vtoc.nheads),
- be16dec(&table->vtoc.altcyls));
+ if (indent == NULL) {
+ /* conftxt: libdisk compatibility */
+ sbuf_printf(sb, " xs SUN sc %u hd %u alt %u",
+ be16dec(&table->vtoc.nsecs), be16dec(&table->vtoc.nheads),
+ be16dec(&table->vtoc.altcyls));
+ } else if (entry != NULL) {
+ /* confxml: partition entry information */
+ sbuf_printf(sb, "%s<rawtype>%u</rawtype>\n", indent,
+ be16dec(&table->vtoc.part[entry->gpe_index - 1].tag));
+ } else {
+ /* confxml: scheme information */
+ }
return (0);
}
OpenPOWER on IntegriCloud