mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dev_manager: pending traces only existing LV
Before adding LV to the dtree, check whether it's already in dtree.
This commit is contained in:
parent
622884d67a
commit
b47b66ebff
@ -2886,7 +2886,8 @@ static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
|
||||
if (lv_is_pending_delete(sl->seg->lv)) {
|
||||
/* LV is referenced by 'cache pending delete LV */
|
||||
dm->track_pending_delete = 1;
|
||||
if (!_add_lv_to_dtree(dm, dtree, sl->seg->lv, origin_only))
|
||||
if (!_cached_dm_tree_node(dm->mem, dtree, sl->seg->lv, lv_layer(sl->seg->lv)) &&
|
||||
!_add_lv_to_dtree(dm, dtree, sl->seg->lv, 0))
|
||||
return_0;
|
||||
dm->track_pending_delete = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user