Blame SOURCES/lvm2-2_02_188-lvconvert-no-validation-for-thin-pools-not-used-by-lvm.patch

f507f1
From 16a03878cd39cb1fb0c052a41901b6660f9f674c Mon Sep 17 00:00:00 2001
f507f1
From: Zdenek Kabelac <zkabelac@redhat.com>
f507f1
Date: Wed, 8 Apr 2020 11:46:42 +0200
f507f1
Subject: [PATCH 4/4] lvconvert: no validation for thin-pools not used by lvm2
f507f1
f507f1
lvm2 supports thin-pool to be later used by other tools doing
f507f1
virtual volumes themself (i.e. docker) - in this case we
f507f1
shall not validate transaction Id - is this is used by
f507f1
other tools and lvm2 keeps value 0 - so the transationId
f507f1
validation need to be skipped in this case.
f507f1
f507f1
(cherry picked from commit 1316cafbe988307264e4f87dbcffaf56bc2ab388)
f507f1
(cherry picked from commit ca84deb23f0cfb51dbeba0ffe44f757345e6f8a0)
f507f1
---
f507f1
 tools/lvconvert.c | 3 ++-
f507f1
 1 file changed, 2 insertions(+), 1 deletion(-)
f507f1
f507f1
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
f507f1
index 799e746..bf14eec 100644
f507f1
--- a/tools/lvconvert.c
f507f1
+++ b/tools/lvconvert.c
f507f1
@@ -2330,7 +2330,8 @@ static int _lvconvert_thin_pool_repair(struct cmd_context *cmd,
f507f1
 		goto deactivate_mlv;
f507f1
 	}
f507f1
 
f507f1
-	if (thin_dump[0]) {
f507f1
+	/* Check matching transactionId when thin-pool is used by lvm2 (transactionId != 0) */
f507f1
+	if (first_seg(pool_lv)->transaction_id && thin_dump[0]) {
f507f1
 		argv[0] = thin_dump;
f507f1
 		argv[1] = pms_path;
f507f1
 		argv[2] = NULL;
f507f1
-- 
f507f1
1.8.3.1
f507f1