All of lore.kernel.org
 help / color / mirror / Atom feed
* master - writecache: allow removing wcorig lv
@ 2020-02-21 18:43 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2020-02-21 18:43 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=81d03330670f392cfe938d8bb12df2ed4c30f2d0
Commit:        81d03330670f392cfe938d8bb12df2ed4c30f2d0
Parent:        2284f845b0328df97dfef6200905b3b462cd3cce
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Fri Feb 21 12:40:42 2020 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Fri Feb 21 12:41:52 2020 -0600

writecache: allow removing wcorig lv

like removing corig
---
 lib/metadata/lv_manip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 3604a63..3090a93 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 */




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-21 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 18:43 master - writecache: allow removing wcorig lv David Teigland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.