1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

thin: don't use writecache for poolmetadata

This commit is contained in:
David Teigland 2020-02-13 17:22:37 -06:00
parent cba06012ac
commit db1d66859f

View File

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