* libparted/labels/pt-tools.c (ptt_partition_max_start_len): Define
for MAC partition tables. They too have 32-bit-limited partition
starting sector number and partition length (in sectors).
* libparted/labels/mac.c (mac_partition_check): Use
ptt_partition_max_start_len.
static bool
mac_partition_check (const PedPartition* part)
{
- return true;
+ return ptt_partition_max_start_len ("mac", part);
}
static PedDiskOps mac_disk_ops = {
int
ptt_partition_max_start_len (char const *label_type, const PedPartition *part)
{
- static char const *const max_32[] = {"msdos", "dvh", "dasd"};
+ static char const *const max_32[] = {"msdos", "dvh", "dasd", "mac"};
unsigned int i;
for (i = 0; i < sizeof max_32 / sizeof *max_32; i++)