mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvconvert: return error without conversion
lvconvert parameters not causing a conversion (i.e. no type, number of stripes, stripesize or regionsize changes) will remove any allocated reshape space in which case the command returns success. If reshape space does not exist though, return error.
This commit is contained in:
parent
56704383bf
commit
1f715ab3b2
@ -2227,7 +2227,7 @@ static int _raid_reshape(struct logical_volume *lv,
|
||||
if (where_it_was == alloc_none) {
|
||||
log_print_unless_silent("LV %s does not have reshape space allocated.",
|
||||
display_lvname(lv));
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!_lv_update_reload_fns_reset_eliminate_lvs(lv, 0, NULL, NULL))
|
||||
|
Loading…
x
Reference in New Issue
Block a user