mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
config: also clone associated id when cloning node using dm_config_clone_node{_with_mem}
This commit is contained in:
parent
110a0745cd
commit
f6de196c21
@ -1308,6 +1308,8 @@ struct dm_config_node *dm_config_clone_node_with_mem(struct dm_pool *mem, const
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
new_cn->id = cn->id;
|
||||||
|
|
||||||
if ((cn->v && !(new_cn->v = _clone_config_value(mem, cn->v))) ||
|
if ((cn->v && !(new_cn->v = _clone_config_value(mem, cn->v))) ||
|
||||||
(cn->child && !(new_cn->child = dm_config_clone_node_with_mem(mem, cn->child, 1))) ||
|
(cn->child && !(new_cn->child = dm_config_clone_node_with_mem(mem, cn->child, 1))) ||
|
||||||
(siblings && cn->sib && !(new_cn->sib = dm_config_clone_node_with_mem(mem, cn->sib, siblings))))
|
(siblings && cn->sib && !(new_cn->sib = dm_config_clone_node_with_mem(mem, cn->sib, siblings))))
|
||||||
|
Loading…
Reference in New Issue
Block a user