mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add preload support for thin and thin_pool
This commit is contained in:
parent
38796c3d47
commit
87663d5f88
@ -1098,6 +1098,16 @@ static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
|
||||
!_add_partial_replicator_to_dtree(dm, dtree, lv))
|
||||
return_0;
|
||||
|
||||
if (lv_is_thin_pool(lv)) {
|
||||
if (!_add_lv_to_dtree(dm, dtree, first_seg(lv)->pool_metadata_lv, origin_only))
|
||||
return_0;
|
||||
if (!_add_lv_to_dtree(dm, dtree, seg_lv(first_seg(lv), 0), origin_only))
|
||||
return_0;
|
||||
} else if (lv_is_thin_volume(lv)) {
|
||||
if (!_add_lv_to_dtree(dm, dtree, first_seg(lv)->pool_lv, origin_only))
|
||||
return_0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user