After lvm-snapshots-remove-old-format.patch patch, the percent argument of target_percent method is never used, so remove it. Signed-off-by: Mikulas Patocka --- lib/activate/dev_manager.c | 7 ++----- lib/metadata/segtype.h | 2 +- lib/mirror/mirrored.c | 3 +-- lib/snapshot/snapshot.c | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) Index: LVM2.2.02.39/lib/activate/dev_manager.c =================================================================== --- LVM2.2.02.39.orig/lib/activate/dev_manager.c 2008-07-09 19:03:23.000000000 +0200 +++ LVM2.2.02.39/lib/activate/dev_manager.c 2008-07-11 21:04:32.000000000 +0200 @@ -339,8 +339,6 @@ static int _percent_run(struct dev_manag uint64_t total_numerator = 0, total_denominator = 0; - *percent = -1; - if (!(dmt = _setup_task(name, dlid, event_nr, wait ? DM_DEVICE_WAITEVENT : DM_DEVICE_STATUS))) return_0; @@ -379,8 +377,7 @@ static int _percent_run(struct dev_manag !segtype->ops->target_percent(&dm->target_state, dm->mem, dm->cmd, seg, params, &total_numerator, - &total_denominator, - percent)) + &total_denominator)) goto_out; } while (next); @@ -393,7 +390,7 @@ static int _percent_run(struct dev_manag if (total_denominator) *percent = (float) total_numerator *100 / total_denominator; - else if (*percent < 0) + else *percent = 100; log_debug("LV percent: %f", *percent); Index: LVM2.2.02.39/lib/metadata/segtype.h =================================================================== --- LVM2.2.02.39.orig/lib/metadata/segtype.h 2008-07-09 19:03:23.000000000 +0200 +++ LVM2.2.02.39/lib/metadata/segtype.h 2008-07-11 21:04:13.000000000 +0200 @@ -77,7 +77,7 @@ struct segtype_handler { struct cmd_context *cmd, struct lv_segment *seg, char *params, uint64_t *total_numerator, - uint64_t *total_denominator, float *percent); + uint64_t *total_denominator); int (*target_present) (const struct lv_segment *seg, unsigned *attributes); int (*modules_needed) (struct dm_pool *mem, Index: LVM2.2.02.39/lib/mirror/mirrored.c =================================================================== --- LVM2.2.02.39.orig/lib/mirror/mirrored.c 2008-07-09 19:03:23.000000000 +0200 +++ LVM2.2.02.39/lib/mirror/mirrored.c 2008-07-11 21:04:13.000000000 +0200 @@ -176,8 +176,7 @@ static struct mirror_state *_mirrored_in static int _mirrored_target_percent(void **target_state, struct dm_pool *mem, struct cmd_context *cmd, struct lv_segment *seg, char *params, uint64_t *total_numerator, - uint64_t *total_denominator, - float *percent __attribute((unused))) + uint64_t *total_denominator) { struct mirror_state *mirr_state; uint64_t numerator, denominator; Index: LVM2.2.02.39/lib/snapshot/snapshot.c =================================================================== --- LVM2.2.02.39.orig/lib/snapshot/snapshot.c 2008-07-09 19:03:35.000000000 +0200 +++ LVM2.2.02.39/lib/snapshot/snapshot.c 2008-07-11 21:04:13.000000000 +0200 @@ -95,7 +95,7 @@ static int _snap_target_percent(void **t struct cmd_context *cmd __attribute((unused)), struct lv_segment *seg __attribute((unused)), char *params, uint64_t *total_numerator, - uint64_t *total_denominator, float *percent) + uint64_t *total_denominator) { uint64_t numerator, denominator;