Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2012 08:54:06 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239088 - head/sys/boot/common
Message-ID:  <201208060854.q768s6PN008369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Aug  6 08:54:06 2012
New Revision: 239088
URL: http://svn.freebsd.org/changeset/base/239088

Log:
  Fix start offset calculation for the EBR partitions.

Modified:
  head/sys/boot/common/part.c

Modified: head/sys/boot/common/part.c
==============================================================================
--- head/sys/boot/common/part.c	Mon Aug  6 08:39:29 2012	(r239087)
+++ head/sys/boot/common/part.c	Mon Aug  6 08:54:06 2012	(r239088)
@@ -389,7 +389,7 @@ ptable_ebrread(struct ptable *table, voi
 		entry = malloc(sizeof(*entry));
 		if (entry == NULL)
 			break;
-		entry->part.start = e1->part.start + start;
+		entry->part.start = offset + start;
 		entry->part.end = entry->part.start + end - 1;
 		entry->part.index = index++;
 		entry->part.type = mbr_parttype(dp[0].dp_typ);



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