[parted-devel] > 63 heads. Why does this keep coming up?

Phillip Susi psusi at cfl.rr.com
Sat Feb 12 21:28:31 UTC 2011


On 02/03/2011 12:49 PM, Curtis Gedak wrote:
> The relevant section of code from the git repository can be viewed at
> the following link:
>
> http://git.debian.org/?p=parted/parted.git;a=blob;f=libparted/labels/dos.c;h=578180bc6658d5f4e0812d5976a1499bc95c8d9b;hb=HEAD#l726

It looks to me like the problem is that PED_ASSERT() is broken.  The 
code appears to be trying to use PED_ASSERT() to print an error, and 
then return 0 so things can carry on without being able to guess the 
bios geometry, but PED_ASSERT() ignores the second argument and never 
returns.

Either PED_ASSERT() needs fixed to return and execute the action 
argument, or probe_partition_for_geom() needs fixed to not use 
PED_ASSERT() for these constraint tests.



More information about the parted-devel mailing list