OSDN Git Service

gpt: prepare for tables with n_partition_array_entries != 128
authorRobert Herndon <Robert.Herndon@quantum.com>
Sat, 29 Oct 2011 21:03:49 +0000 (23:03 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 3 Nov 2011 21:09:16 +0000 (22:09 +0100)
commitbb4e43862127054f2b8744b9d8812cba78912bbb
tree1c975e45a9aef350ffdf97b1ec94394bfd5a14e0
parentf0e91a88107642b17f1c7801d9326460924a1948
gpt: prepare for tables with n_partition_array_entries != 128

* libparted/labels/gpt.c (gpt_read_PE_array): When computing the size
of the partition array entry, use the value of "number of partition
array entries" read from a GPT header, not the default of 128 that we
use when creating new headers.  Details here:
http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10173
libparted/labels/gpt.c