mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cache: fix clean_tree
Fix 8121074fda126cc6c0df05fba066cc9365e00255 - the patch incorrectly removed also other top-level nodes. It needs to deactivate purely subnodes of _corig.
This commit is contained in:
parent
112302d41a
commit
57c618b0ed
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.113 -
|
Version 2.02.113 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Fix clean_tree after activation/resume for cache target (2.02.112).
|
||||||
|
|
||||||
Version 2.02.112 - 11th November 2014
|
Version 2.02.112 - 11th November 2014
|
||||||
=====================================
|
=====================================
|
||||||
|
@ -3001,11 +3001,12 @@ static int _clean_tree(struct dev_manager *dm, struct dm_tree_node *root, char *
|
|||||||
if (non_toplevel_tree_dlid && !strcmp(non_toplevel_tree_dlid, uuid))
|
if (non_toplevel_tree_dlid && !strcmp(non_toplevel_tree_dlid, uuid))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((name = strstr(lvname, "_corig")) && !name[6]) {
|
if ((name = strstr(lvname, "_corig")) && !name[6] &&
|
||||||
/* FIXME: for now just for _corig deactivate LVM subtree, should be generic */
|
/* FIXME: for now just for _corig deactivate LVM subtree, should be generic */
|
||||||
if (!dm_tree_deactivate_children(root, "LVM-", 4))
|
!dm_tree_deactivate_children(child, "LVM-", 4))
|
||||||
return_0;
|
return_0;
|
||||||
} else if (!dm_tree_deactivate_children(root, uuid, strlen(uuid)))
|
|
||||||
|
if (!dm_tree_deactivate_children(root, uuid, strlen(uuid)))
|
||||||
return_0;
|
return_0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user