Project

General

Profile

Bug #8598

loader: Fix BSD label partition end sector calculation.

Added by Toomas Soome over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2017-08-31
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

FreeBSD update https://svnweb.freebsd.org/base?view=revision&revision=323050

--- stable/11/sys/boot/common/part.c    2017/08/31 12:02:14    323049
+++ stable/11/sys/boot/common/part.c    2017/08/31 12:36:09    323050
@@ -486,7 +486,7 @@
             break;
         entry->part.start = le32toh(part->p_offset) - raw_offset;
         entry->part.end = entry->part.start +
-            le32toh(part->p_size) + 1;
+            le32toh(part->p_size) - 1;
         entry->part.type = bsd_parttype(part->p_fstype);
         entry->part.index = i; /* starts from zero */
         entry->type.bsd = part->p_fstype;

Also available in: Atom PDF