From ab4effdc6875ca98fa2528c693991d47a2f07106 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 1 Sep 2017 17:55:25 +0000 Subject: [PATCH] Add efimedia attribute for all GPT partitions. Sposnored by: Netflix Differential Revision: https://reviews.freebsd.org/D12206 --- sys/geom/part/g_part_gpt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c index 45d6ef859560..a7e9f88df94e 100644 --- a/sys/geom/part/g_part_gpt.c +++ b/sys/geom/part/g_part_gpt.c @@ -731,6 +731,12 @@ g_part_gpt_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry, sbuf_printf(sb, "%s", indent); sbuf_printf_uuid(sb, &entry->ent.ent_uuid); sbuf_printf(sb, "\n"); + sbuf_printf(sb, "%s", indent); + sbuf_printf(sb, "HD(%d,GPT,", entry->base.gpe_index); + sbuf_printf_uuid(sb, &entry->ent.ent_uuid); + sbuf_printf(sb, ",%#jx,%#jx)", (intmax_t)entry->base.gpe_start, + (intmax_t)entry->base.gpe_end); + sbuf_printf(sb, "\n"); } else { /* confxml: scheme information */ }