mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
writecache: allow removing wcorig lv
like removing corig
This commit is contained in:
parent
2284f845b0
commit
81d0333067
@ -6638,7 +6638,7 @@ int lv_remove_with_dependencies(struct cmd_context *cmd, struct logical_volume *
|
|||||||
return 0;
|
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"))
|
if (!_lv_remove_segs_using_this_lv(cmd, lv, force, level, "cache origin"))
|
||||||
return_0;
|
return_0;
|
||||||
/* Removal of cache LV also removes caching origin */
|
/* Removal of cache LV also removes caching origin */
|
||||||
|
Loading…
Reference in New Issue
Block a user