[parted-devel] libparted: new functions to return per-partition-table-type limits
Jim Meyering
jim at meyering.net
Mon Dec 7 20:22:58 UTC 2009
I started adding per-partition-table type with the "mac" table type.
That's the first patch. However, adding new interfaces to so many
tables and files is not at all maintainable, so the first step was
to factor out some of the duplication so I could add each new interface
in only one file, rather than in ten.
The 2nd patch makes parted use a gperf-generated lookup function
that maps from partition table type name to a structure defining
the limits for that type.
The third patch factors most of the members from the *_disk_ops tables
into the new pt-common.h header, as well as the *_partition_check functions.
[PATCH 4/5] does this, from its NEWS entry:
libparted: new functions to return per-partition-table-type limits:
- ped_disk_max_partition_start_sector: Return the largest representable
start sector number for a given "disk".
- ped_disk_max_partition_length: Return the maximum partition length
for a given "disk".
Subject: [PATCH 5/5] tests: exercise the new interfaces
I'll push these tomorrow.
More information about the parted-devel
mailing list