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
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);