mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvconvert: Improve error message when no -m.
This commit is contained in:
parent
be497175e0
commit
5c3141a8b9
@ -1853,7 +1853,12 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (seg_is_linear(seg) && !lp->merge_mirror && !lp->mirrors_supplied) {
|
if (seg_is_linear(seg) && !lp->merge_mirror && !lp->mirrors_supplied) {
|
||||||
log_error("Raid conversions require -m/--mirrors.");
|
if (_raid0_type_requested(lp->type_str))
|
||||||
|
log_error("Linear LV %s cannot be converted to %s.",
|
||||||
|
display_lvname(lv), lp->type_str);
|
||||||
|
else
|
||||||
|
log_error("Raid conversions of LV %s require -m/--mirrors.",
|
||||||
|
display_lvname(lv));
|
||||||
goto try_new_takeover_or_reshape;
|
goto try_new_takeover_or_reshape;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user