Remove support the old format returned by the kernel. None of the mainstream kernels (since 2.6.8 where snapshots were introduced) use this format. Signed-off-by: Mikulas Patocka --- lib/snapshot/snapshot.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) Index: LVM2.2.02.39/lib/snapshot/snapshot.c =================================================================== --- LVM2.2.02.39.orig/lib/snapshot/snapshot.c 2008-07-09 19:03:25.000000000 +0200 +++ LVM2.2.02.39/lib/snapshot/snapshot.c 2008-07-09 19:03:35.000000000 +0200 @@ -97,18 +97,12 @@ static int _snap_target_percent(void **t char *params, uint64_t *total_numerator, uint64_t *total_denominator, float *percent) { - float percent2; uint64_t numerator, denominator; - if (strchr(params, '/')) { - if (sscanf(params, "%" PRIu64 "/%" PRIu64, - &numerator, &denominator) == 2) { - *total_numerator += numerator; - *total_denominator += denominator; - } - } else if (sscanf(params, "%f", &percent2) == 1) { - *percent += percent2; - *percent /= 2; + if (sscanf(params, "%" PRIu64 "/%" PRIu64, + &numerator, &denominator) == 2) { + *total_numerator += numerator; + *total_denominator += denominator; } return 1;