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

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
3c4a43
index d0a6b02..38c8146 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;