bug#17108: [PATCH] libparted: Check AlternateLBA against LBA-1

2014-04-07 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 04/07/2014 08:38 PM, Brian C. Lane wrote: >> diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c >> index 42b0360..971c1c0 100644 --- a/libparted/labels/gpt.c +++ >> b/libparted/labels/gpt.c @@ -991,7 +991,8 @@ gpt_read (PedDisk >> *disk

bug#17108: [PATCH] libparted: Check AlternateLBA against LBA-1

2014-04-07 Thread Brian C. Lane
On Thu, Mar 27, 2014 at 08:05:14PM -0400, Phillip Susi wrote: > t0210-gpt-resized-partition-entry-array failed because gpt-header-munge > did not relocate the LastUsableLBA to agree with the smaller table size. > This caused parted to complain that the backup was not at the end of the > disk ( as i

bug#17108: [PATCH] libparted: Check AlternateLBA against LBA-1

2014-03-28 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/28/2014 1:02 PM, Brian C. Lane wrote: > No, this would still set the new end to gpt_disk_end which is the > calculation I was complaining about. You cannot assume that the PTE > will start right after LastUsableLBA, you have to use the backup's

bug#17108: [PATCH] libparted: Check AlternateLBA against LBA-1

2014-03-28 Thread Brian C. Lane
On Thu, Mar 27, 2014 at 08:05:14PM -0400, Phillip Susi wrote: > t0210-gpt-resized-partition-entry-array failed because gpt-header-munge > did not relocate the LastUsableLBA to agree with the smaller table size. > This caused parted to complain that the backup was not at the end of the > disk ( as i

bug#17108: [PATCH] libparted: Check AlternateLBA against LBA-1

2014-03-27 Thread Phillip Susi
t0210-gpt-resized-partition-entry-array failed because gpt-header-munge did not relocate the LastUsableLBA to agree with the smaller table size. This caused parted to complain that the backup was not at the end of the disk ( as indicated by LastUsableLBA ), when in fact, it was. Accept the current