diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 15dec6faf..8b21ef18b 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -1916,11 +1916,8 @@ static int _check_holder(struct dev_manager *dm, struct dm_tree *dtree, if (!strncmp(uuid, (char*)&lv->vg->id, sizeof(lv->vg->id)) && !dm_tree_find_node_by_uuid(dtree, uuid)) { - if (!dm_strncpy((char*)&id, uuid, 2 * sizeof(struct id) + 1)) { - log_error(INTERNAL_ERROR "Too long UUID %s in VG %s.", - uuid, lv->vg->name); - goto out; - } + /* trims any UUID suffix (i.e. -cow) */ + (void) dm_strncpy((char*)&id, uuid, 2 * sizeof(struct id) + 1); /* If UUID is not yet in dtree, look for matching LV */ if (!(lv_det = find_lv_in_vg_by_lvid(lv->vg, &id))) {