From d210ed3b77ff848367902abc59341746d906fb31 Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 12 Jun 2008 05:28:47 +0000 Subject: Add the raw partiton type to the XML. --- sys/geom/part/g_part_gpt.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'sys/geom') diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c index d2df420..1df9242 100644 --- a/sys/geom/part/g_part_gpt.c +++ b/sys/geom/part/g_part_gpt.c @@ -437,13 +437,21 @@ g_part_gpt_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry, struct sbuf *sb, const char *indent) { struct g_part_gpt_entry *entry; - - if (indent != NULL) - return (0); - + entry = (struct g_part_gpt_entry *)baseentry; - sbuf_printf(sb, " xs GPT xt "); - sbuf_printf_uuid(sb, &entry->ent.ent_type); + if (indent == NULL) { + /* conftxt: libdisk compatibility */ + sbuf_printf(sb, " xs GPT xt "); + sbuf_printf_uuid(sb, &entry->ent.ent_type); + } else if (entry != NULL) { + /* confxml: partition entry information */ + // sbuf_printf(sb, "%s\n", indent, NULL); + sbuf_printf(sb, "%s", indent); + sbuf_printf_uuid(sb, &entry->ent.ent_type); + sbuf_printf(sb, "\n"); + } else { + /* confxml: scheme information */ + } return (0); } -- cgit v1.1