Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2017 07:04:06 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323125 - head/sys/geom/part
Message-ID:  <201709020704.v82746Oj055518@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709020704.v82746Oj055518>