Blame SOURCES/lvm2-2_03_13-lvconvert-allow-writecache-with-other-thinpool-comma.patch

d16add
 tools/lvconvert.c | 2 +-
d16add
 1 file changed, 1 insertion(+), 1 deletion(-)
d16add
d16add
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
d16add
index 8dd8a15..6066d1f 100644
d16add
--- a/tools/lvconvert.c
d16add
+++ b/tools/lvconvert.c
d16add
@@ -4803,7 +4803,7 @@ static int _lvconvert_to_pool_or_swap_metadata_single(struct cmd_context *cmd,
d16add
 
d16add
 	switch (cmd->command->command_enum) {
d16add
 	case lvconvert_to_thinpool_or_swap_metadata_CMD:
d16add
-		if (lv_is_cache(lv))
d16add
+		if (lv_is_cache(lv) || lv_is_writecache(lv))
d16add
 			/* For cached LV check the cache origin LV type */
d16add
 			lvt_enum = get_lvt_enum(seg_lv(first_seg(lv), 0));
d16add
 		to_thinpool = 1;