Bug 138480 - [PATCH] GPT PMBR disk >2TB fix
Summary: [PATCH] GPT PMBR disk >2TB fix
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: parted
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 140583
TreeView+ depends on / blocked
 
Reported: 2004-11-09 15:25 UTC by Matt Domsch
Modified: 2007-11-30 22:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-12-07 17:41:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
parted-1.6.16-device-length-in-pmbr.patch (676 bytes, patch)
2004-11-09 15:26 UTC, Matt Domsch
no flags Details | Diff

Description Matt Domsch 2004-11-09 15:25:42 UTC
Description of problem:
On Mon, 2004-11-08 at 10:45 -0600, Matt Domsch wrote:
(patch submitted to bug-parted for inclusion after 1.6.16)
Patch below (applies against 1.6.11 and 1.6.16 at least) sets the
SizeInLBA field in the Protective MBR on GPT disks to be 0xFFFFFFFF if
the disk size is really larger than that.  This is to be consistent
with the EFI Specification.

Necessary to prevent overflowing this field on really large disks.
The 2.6.10 Linux kernel partitioning code will start checking
this value for sanity, and 0xFFFFFFFF is a special value there now.

Note, though no single disk can be larger than 2TB yet, a RAID 
controller could project such, likewise the new partitionable md_d0pX 
software RAID volumes could be larger than 2TB and want to put a GPT 
partition table on that.  (yes, I've verified that this works).


Version-Release number of selected component (if applicable):
parted <= 1.6.16-0

Comment 1 Matt Domsch 2004-11-09 15:26:43 UTC
Created attachment 106345 [details]
parted-1.6.16-device-length-in-pmbr.patch

Patch as submitted to bug-parted

Comment 2 Matt Domsch 2004-11-09 23:24:15 UTC
Patch accepted by upstream maintainer Andrew Clausen, so I expect it 
in parted-1.6.17 when released.

Comment 3 Jeremy Katz 2004-11-11 21:33:55 UTC
merged into the -devel package.  Will merge over to the RHEL4 branch
once I see how the new geometry probing works out.  So leaving open
for now and putting it on a tracker so I don't forget about it.

Comment 5 Jeremy Katz 2004-11-30 22:53:22 UTC
Refreshing parted package to 1.6.19 to pull in the slew of geometry
related fixes Andrew has added recently and also gets this.

Comment 6 Matt Domsch 2004-12-07 17:41:14 UTC
Yep, closing.


Note You need to log in before you can comment on or make changes to this bug.