mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
lvconvert: allow writecache with other thinpool command syntax
"lvconvert --thinpool LV" should allow LV to have a writecache, but there was an extra type check preventing it.
This commit is contained in:
parent
f773040625
commit
c35f7722d5
@ -4769,7 +4769,7 @@ static int _lvconvert_to_pool_or_swap_metadata_single(struct cmd_context *cmd,
|
|||||||
|
|
||||||
switch (cmd->command->command_enum) {
|
switch (cmd->command->command_enum) {
|
||||||
case lvconvert_to_thinpool_or_swap_metadata_CMD:
|
case lvconvert_to_thinpool_or_swap_metadata_CMD:
|
||||||
if (lv_is_cache(lv))
|
if (lv_is_cache(lv) || lv_is_writecache(lv))
|
||||||
/* For cached LV check the cache origin LV type */
|
/* For cached LV check the cache origin LV type */
|
||||||
lvt_enum = get_lvt_enum(seg_lv(first_seg(lv), 0));
|
lvt_enum = get_lvt_enum(seg_lv(first_seg(lv), 0));
|
||||||
to_thinpool = 1;
|
to_thinpool = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user