1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

writecache: allow removing wcorig lv

like removing corig
This commit is contained in:
David Teigland 2020-02-21 12:40:42 -06:00
parent 2284f845b0
commit 81d0333067

View File

@ -6638,7 +6638,7 @@ int lv_remove_with_dependencies(struct cmd_context *cmd, struct logical_volume *
return 0;
}
if (lv_is_cache_origin(lv)) {
if (lv_is_cache_origin(lv) || lv_is_writecache_origin(lv)) {
if (!_lv_remove_segs_using_this_lv(cmd, lv, force, level, "cache origin"))
return_0;
/* Removal of cache LV also removes caching origin */