OSDN Git Service

Remove PED_ASSERT from dos geometry checking
authorBrian C. Lane <bcl@redhat.com>
Wed, 2 Mar 2011 22:36:32 +0000 (14:36 -0800)
committerJim Meyering <meyering@redhat.com>
Sat, 5 Mar 2011 20:49:41 +0000 (21:49 +0100)
commit244b1b25a12198efb076e8c65be77b5750776583
tree0504322b57cafed11f110defc1773e80eab93215
parent0bfe6ac65d42f11730943eeaee754e7749e55de1
Remove PED_ASSERT from dos geometry checking

The CHS geometry values are calculated based on the existing partition
information. The values can't always be calculated, and the partition
may be corrupt so instead of throwing an assertion just return 0 and
carry on.

I left the logic for the PED_ASSERT checks the same so that it is clear
that the logic has not changed, it just returns 0 now.

* libparted/labels/dos.c (probe_partition_for_geom): remove PED_ASSERT
libparted/labels/dos.c