1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

dev_manager: workaround to allow top-level _tmeta, _tdata

This commit is contained in:
Zdenek Kabelac 2014-11-11 00:50:13 +01:00
parent a7fc108298
commit ca509c9746

View File

@ -2889,6 +2889,10 @@ static int _clean_tree(struct dev_manager *dm, struct dm_tree_node *root, char *
if (!*layer && (!(layer = strchr(uuid + 4, '-')) || strstr(layer, "-pool") || strstr(layer, "-tpool")))
continue;
/* FIXME: we still occasionally need to activate these at top-level */
if (strstr(lvname, "_tmeta") || strstr(lvname, "_tdata"))
continue;
/* If operation was performed on a partial tree, don't remove it */
if (non_toplevel_tree_dlid && !strcmp(non_toplevel_tree_dlid, uuid))
continue;