Project

General

Profile

Bug #8598

loader: Fix BSD label partition end sector calculation.

Added by Toomas Soome about 2 years ago. Updated about 2 years ago.

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:

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;

History

#1

Updated by Toomas Soome about 2 years ago

  • Subject changed from Fix BSD label partition end sector calculation. to loader: Fix BSD label partition end sector calculation.
#2

Updated by Electric Monk about 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 27b4c18acb5aee865d218de91c475ae0a7cc4e8a

commit  27b4c18acb5aee865d218de91c475ae0a7cc4e8a
Author: Toomas Soome <tsoome@me.com>
Date:   2017-09-05T00:58:03.000Z

    8598 loader: Fix BSD label partition end sector calculation.
    Reviewed by: James Blachly <james.blachly@gmail.com>
    Reviewed by: John Howard <Echosoft.LLC@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF