mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: fix previous update of partial tree building
We do want to preserve 'active' thin-pool, so add this 'fake' layer only when activating. TODO: think how to use thin-pool without fake LV layer.
This commit is contained in:
parent
8d86c5db03
commit
0285066e10
@ -2311,7 +2311,8 @@ static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
|
||||
return_0;
|
||||
if (seg->pool_lv &&
|
||||
(lv_is_cache_pool(seg->pool_lv) || !dm->skip_external_lv) &&
|
||||
!_add_lv_to_dtree(dm, dtree, seg->pool_lv, origin_only))
|
||||
/* When activating and not origin_only detect linear 'overlay' over pool */
|
||||
!_add_lv_to_dtree(dm, dtree, seg->pool_lv, dm->activation ? origin_only : 1))
|
||||
return_0;
|
||||
|
||||
for (s = 0; s < seg->area_count; s++) {
|
||||
|
Loading…
Reference in New Issue
Block a user