[parted-devel] Patch: Fix gpt_read to read all of the partition entries correctly

Joel Granados jgranado at redhat.com
Thu May 21 13:29:00 UTC 2009


Matthew.

I modified it a little...
Hope you don't mind.

Regards.
On Tue, Dec 02, 2008 at 08:16:49PM -0800, Matthew S. Harris wrote:
> Here's my one remaining fix.  Yes, I've been sitting on this one since
> April 2007 too.  Hopefully it's clear why this one is important.
> 
> 
> Matthew

> From 282be216499436242cdb3083c0e5d9b672db8682 Mon Sep 17 00:00:00 2001
> From: Matthew S. Harris <mharris312 at gmail.com>
> Date: Tue, 2 Dec 2008 19:53:08 -0800
> Subject: [PATCH] Fix gpt_read to read all of the partition entries correctly.
> 
> * libparted/labels/gpt.c (gpt_read): Use the SizeOfPartitionEntry
> field value when reading the partition entries rather than assuming
> that the entries are the same size as our struct.
> 
> * libparted/labels/gpt.c (gpt_read): When reading the partition
.
.
.
> entries, round up, not down, the number of sectors to read.
>  		if (!part)
>  			goto error_delete_all;
>  
> -- 
> 1.5.6.3
> 

> _______________________________________________
> parted-devel mailing list
> parted-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/parted-devel

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.


More information about the parted-devel mailing list