mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
activation: fix pvmove partial tree creation
Do not try to add LV again into the partial tree, if it's been already added. Otherwise we may end in endless loop.
This commit is contained in:
parent
b73de73151
commit
71f4934500
@ -1605,7 +1605,8 @@ static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
|
||||
/* Add any LVs referencing a PVMOVE LV unless told not to. */
|
||||
if (dm->track_pvmove_deps && lv->status & PVMOVE)
|
||||
dm_list_iterate_items(sl, &lv->segs_using_this_lv)
|
||||
if (!_add_lv_to_dtree(dm, dtree, sl->seg->lv, origin_only))
|
||||
if (!_cached_info(dm->mem, dtree, sl->seg->lv, 0) &&
|
||||
!_add_lv_to_dtree(dm, dtree, sl->seg->lv, origin_only))
|
||||
return_0;
|
||||
|
||||
/* Adding LV head of replicator adds all other related devs */
|
||||
|
Loading…
x
Reference in New Issue
Block a user