1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

raid: fix sync percent on large RaidLVs

Resolves: rhbz1400301
This commit is contained in:
Heinz Mauelshagen 2016-12-01 00:00:02 +01:00
parent c9848bb7ea
commit 745250073c
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.168 -
====================================
Display correct sync_percent on large RaidLVs
lvmdbusd --blackboxsize <n> added, used to override default size of 16
Allow a transiently failed RaidLV to be refreshed
Use lv_update_and_reload() inside mirror code where it applies.

View File

@ -342,7 +342,7 @@ static int _raid_target_percent(void **target_state,
*total_denominator += denominator;
if (seg)
seg->extents_copied = seg->area_len * numerator / denominator;
seg->extents_copied = (uint64_t) seg->area_len * dm_make_percent(numerator, denominator) / DM_PERCENT_100;
*percent = dm_make_percent(numerator, denominator);