mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
raid: fix sync percent on large RaidLVs
Resolves: rhbz1400301
This commit is contained in:
parent
c9848bb7ea
commit
745250073c
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.168 -
|
Version 2.02.168 -
|
||||||
====================================
|
====================================
|
||||||
|
Display correct sync_percent on large RaidLVs
|
||||||
lvmdbusd --blackboxsize <n> added, used to override default size of 16
|
lvmdbusd --blackboxsize <n> added, used to override default size of 16
|
||||||
Allow a transiently failed RaidLV to be refreshed
|
Allow a transiently failed RaidLV to be refreshed
|
||||||
Use lv_update_and_reload() inside mirror code where it applies.
|
Use lv_update_and_reload() inside mirror code where it applies.
|
||||||
|
@ -342,7 +342,7 @@ static int _raid_target_percent(void **target_state,
|
|||||||
*total_denominator += denominator;
|
*total_denominator += denominator;
|
||||||
|
|
||||||
if (seg)
|
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);
|
*percent = dm_make_percent(numerator, denominator);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user