mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvconvert: no validation for thin-pools not used by lvm2
lvm2 supports thin-pool to be later used by other tools doing virtual volumes themself (i.e. docker) - in this case we shall not validate transaction Id - is this is used by other tools and lvm2 keeps value 0 - so the transationId validation need to be skipped in this case.
This commit is contained in:
parent
06cbe3cfc6
commit
98e33ee3fb
@ -2388,7 +2388,8 @@ static int _lvconvert_thin_pool_repair(struct cmd_context *cmd,
|
||||
goto deactivate_mlv;
|
||||
}
|
||||
|
||||
if (thin_dump[0]) {
|
||||
/* Check matching transactionId when thin-pool is used by lvm2 (transactionId != 0) */
|
||||
if (first_seg(pool_lv)->transaction_id && thin_dump[0]) {
|
||||
argv[0] = thin_dump;
|
||||
argv[1] = pms_path;
|
||||
argv[2] = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user