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

aa5752
 tools/lvconvert.c | 3 ++-
aa5752
 1 file changed, 2 insertions(+), 1 deletion(-)
aa5752
aa5752
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
aa5752
index f6d9a29..bb40930 100644
aa5752
--- a/tools/lvconvert.c
aa5752
+++ b/tools/lvconvert.c
aa5752
@@ -2388,7 +2388,8 @@ static int _lvconvert_thin_pool_repair(struct cmd_context *cmd,
aa5752
 		goto deactivate_mlv;
aa5752
 	}
aa5752
 
aa5752
-	if (thin_dump[0]) {
aa5752
+	/* Check matching transactionId when thin-pool is used by lvm2 (transactionId != 0) */
aa5752
+	if (first_seg(pool_lv)->transaction_id && thin_dump[0]) {
aa5752
 		argv[0] = thin_dump;
aa5752
 		argv[1] = pms_path;
aa5752
 		argv[2] = NULL;