diff --git a/WHATS_NEW b/WHATS_NEW index b3f601e33..d4f7de2e0 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.28 - ================================ + Fix lvconvert_mirrors detection of number of existing mirrors. Clean up numerous compiler warnings that crept in recently. Remove several unused parameters from _allocate(). Only permit --force, --verbose and --debug arguments to be repeated. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 61e6a0a5c..bce79e690 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -242,7 +242,7 @@ static int lvconvert_mirrors(struct cmd_context * cmd, struct logical_volume * l unsigned corelog = 0; seg = first_seg(lv); - existing_mirrors = seg->area_count; + existing_mirrors = (lv->status & MIRRORED) ? seg->area_count : 1; /* * Adjust required number of mirrors