[parted-devel] [PATCH] libparted: handle truncated GPT disks properly
Brian C. Lane
bcl at redhat.com
Fri Jan 16 19:50:15 UTC 2015
On Tue, Dec 30, 2014 at 01:35:29PM -0500, Phillip Susi wrote:
> If a disk had been truncated, or for some other reason the GPT
> indicated it was larger than it appeared to be, parted silently
> failed to read the partition table. This patch fixes two errors:
> First, gpt_read_headers() would attempt to read beyond the end of
> the disk since the primary GPT header claims that is where the
> backup lies. It will now truncate the backup location to the end
> of the disk. Second, _parse_header() now throws a proper exception
> indicating the nature of the problem and giving the user the chance
> to fix or ignore it.
> ---
Ack, thanks for fixing this.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the parted-devel
mailing list