mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

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

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