mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: better message on --regionsize
Enhance message on "lvconvert --regionsize size RaidLV". in case the regionsize does not change and return error.
This commit is contained in:
parent
f5b0697c05
commit
51a31dbd79
@ -5792,9 +5792,10 @@ static int _region_size_change_requested(struct logical_volume *lv, int yes, con
|
||||
return_0;
|
||||
|
||||
if (region_size == seg->region_size) {
|
||||
log_print_unless_silent("Region size wouldn't change on %s LV %s.",
|
||||
log_error("Region size is already %s on %s LV %s.",
|
||||
display_size(lv->vg->cmd, region_size),
|
||||
lvseg_name(seg), display_lvname(lv));
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!_check_region_size_constraints(lv, seg->segtype, region_size, seg->stripe_size))
|
||||
|
Loading…
Reference in New Issue
Block a user