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

Warner Losh imp at FreeBSD.org
Sat Sep 2 07:04:07 UTC 2017


Author: imp
Date: Sat Sep  2 07:04:06 2017
New Revision: 323125
URL: https://svnweb.freebsd.org/changeset/base/323125

Log:
  The hard drive media device path contains the size of the partition,
  not its end. This makes the GEOM efimedia attribute match the
  FreeBSD:Boot1Device environment variable now.
  
  Sponsored by: Netflix

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	Fri Sep  1 22:52:18 2017	(r323124)
+++ head/sys/geom/part/g_part_gpt.c	Sat Sep  2 07:04:06 2017	(r323125)
@@ -735,7 +735,7 @@ g_part_gpt_dumpconf(struct g_part_table *table, struct
 		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);
+		    (intmax_t)(entry->base.gpe_end - entry->base.gpe_start + 1));
 		sbuf_printf(sb, "</efimedia>\n");
 	} else {
 		/* confxml: scheme information */


More information about the svn-src-all mailing list