提交 f7394dcf 编写于 作者: P Pavel Hrdina

vircgroup: introduce virCgroupV2StealPlacement

Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 9aa8226d
......@@ -219,6 +219,17 @@ virCgroupV2ValidatePlacement(virCgroupPtr group,
}
static char *
virCgroupV2StealPlacement(virCgroupPtr group)
{
char *ret;
VIR_STEAL_PTR(ret, group->unified.placement);
return ret;
}
virCgroupBackend virCgroupV2Backend = {
.type = VIR_CGROUP_BACKEND_TYPE_V2,
......@@ -229,6 +240,7 @@ virCgroupBackend virCgroupV2Backend = {
.detectMounts = virCgroupV2DetectMounts,
.detectPlacement = virCgroupV2DetectPlacement,
.validatePlacement = virCgroupV2ValidatePlacement,
.stealPlacement = virCgroupV2StealPlacement,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册