svn commit: r203261 - head/sys/geom/part

Marcel Moolenaar marcel at FreeBSD.org
Sat Jan 30 23:13:20 UTC 2010


Author: marcel
Date: Sat Jan 30 23:13:19 2010
New Revision: 203261
URL: http://svn.freebsd.org/changeset/base/203261

Log:
  Export the UUID of the partition in the XML. The partition UUID is used
  by EFI's device path to identify a partition. In order for FreeBSD to
  add EFI boot options, proper device paths need to be constructed.

Modified:
  head/sys/geom/part/g_part_gpt.c

Modified: head/sys/geom/part/g_part_gpt.c
==============================================================================
--- head/sys/geom/part/g_part_gpt.c	Sat Jan 30 21:55:43 2010	(r203260)
+++ head/sys/geom/part/g_part_gpt.c	Sat Jan 30 23:13:19 2010	(r203261)
@@ -513,6 +513,9 @@ g_part_gpt_dumpconf(struct g_part_table 
 		sbuf_printf(sb, "%s<rawtype>", indent);
 		sbuf_printf_uuid(sb, &entry->ent.ent_type);
 		sbuf_printf(sb, "</rawtype>\n");
+		sbuf_printf(sb, "%s<rawuuid>", indent);
+		sbuf_printf_uuid(sb, &entry->ent.ent_uuid);
+		sbuf_printf(sb, "</rawuuid>\n");
 	} else {
 		/* confxml: scheme information */
 	}


More information about the svn-src-all mailing list