mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
lvconvert: count % upwards when merging a snapshot
Before: # lvconvert --merge -i 1 vg/lvol1 Merging of volume lvol1 started. lvol0: Merged: 36.7% lvol0: Merged: 21.3% lvol0: Merged: 5.8% lvol0: Merged: 0.0% Merge of snapshot into logical volume lvol0 has finished. Logical volume "lvol1" successfully removed After: # lvconvert --merge -i 1 vg/lvol1 Merging of volume lvol1 started. lvol0: Merged: 61.4% lvol0: Merged: 73.0% lvol0: Merged: 88.4% lvol0: Merged: 100.0% Merge of snapshot into logical volume lvol0 has finished. Logical volume "lvol1" successfully removed
This commit is contained in:
parent
cd8ea8b437
commit
07e4ac7b00
@ -1,5 +1,6 @@
|
||||
Version 2.02.97 -
|
||||
===============================
|
||||
Count percentage of completeness upwards when merging a snapshot volume.
|
||||
Skip activation when using vg/lvchange --sysinit -a ay and lvmetad is active.
|
||||
Fix extending RAID 4/5/6 logical volumes
|
||||
Fix test for PV with unknown VG in process_each_pv to ignore ignored mdas.
|
||||
|
@ -580,10 +580,10 @@ static progress_t _poll_merge_progress(struct cmd_context *cmd,
|
||||
|
||||
if (parms->progress_display)
|
||||
log_print("%s: %s: %.1f%%", lv->name, parms->progress_title,
|
||||
percent_to_float(percent));
|
||||
100.0 - percent_to_float(percent));
|
||||
else
|
||||
log_verbose("%s: %s: %.1f%%", lv->name, parms->progress_title,
|
||||
percent_to_float(percent));
|
||||
100.0 - percent_to_float(percent));
|
||||
|
||||
if (percent == PERCENT_0)
|
||||
return PROGRESS_FINISHED_ALL;
|
||||
|
Loading…
Reference in New Issue
Block a user