@@ -, +, @@
convert internal LV"
---
tools/lvconvert.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/tools/lvconvert.c
+++ a/tools/lvconvert.c
@@ -243,6 +243,7 @@ static int _lvconvert_name_params(struct lvconvert_params *lp,
!strstr(lp->lv_name, "_tmeta") &&
!strstr(lp->lv_name, "_cdata") &&
!strstr(lp->lv_name, "_cmeta") &&
+ !strstr(lp->lv_name, "_corig") &&
!apply_lvname_restrictions(lp->lv_name))
return_0;
@@ -4440,7 +4441,8 @@ static int _lvconvert(struct cmd_context *cmd, struct logical_volume *lv,
!lv_is_thin_pool_metadata(lv) &&
!lv_is_thin_pool_data(lv) &&
!lv_is_used_cache_pool(lv) &&
- !lv_is_raid_image(lv)) {
+ !lv_is_raid_image(lv) &&
+ !(lv_is_raid(lv) && strstr(lv->name, "_corig"))) {
log_error("Cannot convert internal LV %s.", display_lvname(lv));
ret = 0;
goto out;
--