mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lv{resize,extend,reduce}: also check for 2-legged raid4
Users can also convert 2-legged raid1 to raid4 thus causing 'Bus error' on resize requests. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1784351
This commit is contained in:
parent
2cf0f90780
commit
04bba5ea42
@ -5090,7 +5090,7 @@ static int _lvresize_check(struct logical_volume *lv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (seg && seg_is_any_raid5(seg) && seg->area_count < 3) {
|
||||
if (seg && (seg_is_raid4(seg) || seg_is_any_raid5(seg)) && seg->area_count < 3) {
|
||||
log_error("Cannot resize %s LV %s. Convert to more stripes first.",
|
||||
lvseg_name(seg), display_lvname(lv));
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user