mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix lvconvert_mirrors detection of number of existing mirrors.
This commit is contained in:
parent
21bc366486
commit
ea041b12f1
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.28 -
|
Version 2.02.28 -
|
||||||
================================
|
================================
|
||||||
|
Fix lvconvert_mirrors detection of number of existing mirrors.
|
||||||
Clean up numerous compiler warnings that crept in recently.
|
Clean up numerous compiler warnings that crept in recently.
|
||||||
Remove several unused parameters from _allocate().
|
Remove several unused parameters from _allocate().
|
||||||
Only permit --force, --verbose and --debug arguments to be repeated.
|
Only permit --force, --verbose and --debug arguments to be repeated.
|
||||||
|
@ -242,7 +242,7 @@ static int lvconvert_mirrors(struct cmd_context * cmd, struct logical_volume * l
|
|||||||
unsigned corelog = 0;
|
unsigned corelog = 0;
|
||||||
|
|
||||||
seg = first_seg(lv);
|
seg = first_seg(lv);
|
||||||
existing_mirrors = seg->area_count;
|
existing_mirrors = (lv->status & MIRRORED) ? seg->area_count : 1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Adjust required number of mirrors
|
* Adjust required number of mirrors
|
||||||
|
Loading…
Reference in New Issue
Block a user