diff options
author | Jim Meyering <meyering@redhat.com> | 2009-12-03 10:58:31 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-12-03 10:58:31 +0100 |
commit | 2b7ed13adab1fff6fc4e945b5dc9f96ace44c99f (patch) | |
tree | 5e48cb8a9cd6a19d3695150d62402d3877ada089 /libparted/labels/pt-tools.c | |
parent | 69b68819c3c4a183a0f44046facdb989abd850ed (diff) | |
download | parted-2b7ed13adab1fff6fc4e945b5dc9f96ace44c99f.tar.gz |
mac: hook up the partition_check function for this partition table type
* 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.
Diffstat (limited to 'libparted/labels/pt-tools.c')
-rw-r--r-- | libparted/labels/pt-tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libparted/labels/pt-tools.c b/libparted/labels/pt-tools.c index 8afec77..48c9384 100644 --- a/libparted/labels/pt-tools.c +++ b/libparted/labels/pt-tools.c @@ -98,7 +98,7 @@ ptt_clear_sectors (PedDevice *dev, PedSector start, PedSector n) 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++) |