diff --git a/WHATS_NEW b/WHATS_NEW index 764cc7390..5a258c116 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.165 - =================================== + Don't allow lvconvert --repair on raid0 devices. No longer adjust incorrect number of raid stripes supplied to lvcreate. Move lcm and gcd to lib/misc. Suppress some unnecessary --stripesize parameter warnings. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index ac019ecee..fefec7cd1 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -1963,7 +1963,13 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l return 0; } - if (!seg_is_striped(seg) && !lv_raid_percent(lv, &sync_percent)) { + if (seg_is_striped(seg)) { + log_error("Cannot repair LV %s of type raid0.", + display_lvname(lv)); + return 0; + } + + if (!lv_raid_percent(lv, &sync_percent)) { log_error("Unable to determine sync status of %s.", display_lvname(lv)); return 0;