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 */ _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"