mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 3 years ago
Clone

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

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