mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
vircgroup: introduce virCgroupV2CopyMounts
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
3a365ef697
commit
38a3fb5647
@ -131,11 +131,20 @@ virCgroupV2ValidateMachineGroup(virCgroupPtr group,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
virCgroupV2CopyMounts(virCgroupPtr group,
|
||||
virCgroupPtr parent)
|
||||
{
|
||||
return VIR_STRDUP(group->unified.mountPoint, parent->unified.mountPoint);
|
||||
}
|
||||
|
||||
|
||||
virCgroupBackend virCgroupV2Backend = {
|
||||
.type = VIR_CGROUP_BACKEND_TYPE_V2,
|
||||
|
||||
.available = virCgroupV2Available,
|
||||
.validateMachineGroup = virCgroupV2ValidateMachineGroup,
|
||||
.copyMounts = virCgroupV2CopyMounts,
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user