mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvconvert: fixe conversion message
When selecting a convenience RAID type only display the selected type when it changed. Display proper current raid type when prompting.
This commit is contained in:
parent
653bca6811
commit
eb6302c8cb
@ -5734,10 +5734,11 @@ static int _set_convenient_raid1456_segtype_to(const struct lv_segment *seg_from
|
||||
replaced:
|
||||
if (!(*segtype = get_segtype_from_flag(cmd, seg_flag)))
|
||||
return_0;
|
||||
log_warn("Replaced LV type %s with possible type %s.",
|
||||
segtype_sav->name, (*segtype)->name);
|
||||
if (segtype_sav != *segtype)
|
||||
log_warn("Replaced LV type %s with possible type %s.",
|
||||
segtype_sav->name, (*segtype)->name);
|
||||
if (!yes && yes_no_prompt("Do you want to convert %s LV %s to %s? [y/n]: ",
|
||||
segtype_sav->name, display_lvname(seg_from->lv),
|
||||
lvseg_name(seg_from), display_lvname(seg_from->lv),
|
||||
(*segtype)->name) == 'n') {
|
||||
log_error("Logical volume %s NOT converted.", display_lvname(seg_from->lv));
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user