Blame SOURCES/lvm2-2_03_09-writecache-allow-removing-wcorig-lv.patch

f41bc7
 lib/metadata/lv_manip.c | 2 +-
f41bc7
 1 file changed, 1 insertion(+), 1 deletion(-)
f41bc7
f41bc7
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
f41bc7
index 3604a63..3090a93 100644
f41bc7
--- a/lib/metadata/lv_manip.c
f41bc7
+++ b/lib/metadata/lv_manip.c
f41bc7
@@ -6638,7 +6638,7 @@ int lv_remove_with_dependencies(struct cmd_context *cmd, struct logical_volume *
f41bc7
 		return 0;
f41bc7
 	}
f41bc7
 
f41bc7
-	if (lv_is_cache_origin(lv)) {
f41bc7
+	if (lv_is_cache_origin(lv) || lv_is_writecache_origin(lv)) {
f41bc7
 		if (!_lv_remove_segs_using_this_lv(cmd, lv, force, level, "cache origin"))
f41bc7
 			return_0;
f41bc7
 		/* Removal of cache LV also removes caching origin */