diff options
author | David Teigland <teigland@redhat.com> | 2020-02-21 12:40:42 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2020-02-21 12:41:52 -0600 |
commit | 81d03330670f392cfe938d8bb12df2ed4c30f2d0 (patch) | |
tree | 79faf353f0e026f43bf573517fdc39831bc46205 | |
parent | 2284f845b0328df97dfef6200905b3b462cd3cce (diff) | |
download | lvm2-81d03330670f392cfe938d8bb12df2ed4c30f2d0.tar.gz |
writecache: allow removing wcorig lv
like removing corig
-rw-r--r-- | lib/metadata/lv_manip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 3604a6347..3090a93f7 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -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 */ |