[parted-devel] [PATCH 1/2] libparted: enforce dos partition limit

Phillip Susi phillsusi at gmail.com
Mon Jan 23 19:02:31 UTC 2012


On 1/23/2012 1:39 PM, H. Peter Anvin wrote:
> GPT enforces its limit because *that's how many slots there are in the
> partition table* (by the way, you *do* handle GPT partition tables with
> more than 128 slots, right?)

Yes, parted handles more ( or less ) than 128 slots, but only will
create a table with 128 slots.

The reason I mentioned the gpt limit is because it actually enforces the
limit.  Code like that in linux.c assumes that the limit that the
partition table reports is correct, so dos should behave properly and
enforce whatever limit it claims.

> Newer Linux kernel s have an overflow system which is at least supposed
> to allow for additional partitions without problems; if that is broken
> then that is a kernel bug, and playing games in parted will just make it
> harder to diagnose and fix.

Up to 256 partitions, yes, this was fixed back in November by commit
ca97da905.



More information about the parted-devel mailing list