* master - lv{resize, extend, reduce}: also check for 2-legged raid4
@ 2020-06-24 12:04 Heinz Mauelshagen
0 siblings, 0 replies; only message in thread
From: Heinz Mauelshagen @ 2020-06-24 12:04 UTC (permalink / raw)
To: lvm-devel
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=04bba5ea421b02275197bfb16b4d1bbf8879b240
Commit: 04bba5ea421b02275197bfb16b4d1bbf8879b240
Parent: 2cf0f90780bed64cb4062eb6dfa714ed03eecfb7
Author: Heinz Mauelshagen <heinzm@redhat.com>
AuthorDate: Wed Jun 24 14:02:29 2020 +0200
Committer: Heinz Mauelshagen <heinzm@redhat.com>
CommitterDate: Wed Jun 24 14:02:31 2020 +0200
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
---
lib/metadata/lv_manip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 142435bbb..1642b90a0 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-24 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24 12:04 master - lv{resize, extend, reduce}: also check for 2-legged raid4 Heinz Mauelshagen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.