mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-28 02:50:41 +03:00
lvconvert: raid0 replace attempt segfaults
Any failing stripes in raid0/raid0_meta type LVs cause data loss, thus replacement via 'lvconvert --replace...' does not make sense. Patch prohibits replacement on raid0/raid0_meta LVs. - resolves rhbz1356734
This commit is contained in:
parent
da49d4d54e
commit
94207dfd68
@ -2829,6 +2829,12 @@ int lv_raid_replace(struct logical_volume *lv,
|
||||
struct lv_list *lvl;
|
||||
char *tmp_names[raid_seg->area_count * 2];
|
||||
|
||||
if (seg_is_any_raid0(raid_seg)) {
|
||||
log_error("Can't replace any devices in %s LV %s",
|
||||
lvseg_name(raid_seg), display_lvname(lv));
|
||||
return 0;
|
||||
}
|
||||
|
||||
dm_list_init(&old_lvs);
|
||||
dm_list_init(&new_meta_lvs);
|
||||
dm_list_init(&new_data_lvs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user