Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/util/vircgroupv2.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c
index 17096e52fa..d3f72b9006 100644
--- a/src/util/vircgroupv2.c
+++ b/src/util/vircgroupv2.c
@@ -133,11 +133,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,
};
--
2.17.1