From db1d66859f8086467979b2d7e32843f70e4436e1 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Thu, 13 Feb 2020 17:22:37 -0600 Subject: [PATCH] thin: don't use writecache for poolmetadata --- tools/lvconvert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index aa2dca7f5..757b32335 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -3104,8 +3104,9 @@ static int _lvconvert_to_pool(struct cmd_context *cmd, return 0; } - /* FIXME Tidy up all these type restrictions. */ + /* FIXME Tidy up all these type restrictions. (Use a type whitelist?) */ if (lv_is_cache_type(metadata_lv) || + lv_is_writecache(metadata_lv) || lv_is_thin_type(metadata_lv) || lv_is_cow(metadata_lv) || lv_is_merging_cow(metadata_lv) || lv_is_origin(metadata_lv) || lv_is_merging_origin(metadata_lv) ||