]> xenbits.xensource.com Git - libvirt.git/commitdiff
cgroup: add stub for virCgroupNew
authorJán Tomko <jtomko@redhat.com>
Thu, 19 Nov 2020 10:16:27 +0000 (11:16 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 19 Nov 2020 10:31:32 +0000 (11:31 +0100)
The previous commit exported the function but forgot to add
a non-Linux stub.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 126cb34a206a44f04e364700b46426dff9f387d5
src/util/vircgroup.c

index e0fe1dbf3ebb1f091e58ab9621be42c41cc54ac8..13df10e5072b57d4fbd66475f32ff0b47a1e10d3 100644 (file)
@@ -2820,6 +2820,17 @@ virCgroupNewPartition(const char *path G_GNUC_UNUSED,
 }
 
 
+int
+virCgroupNew(const char *path G_GNUC_UNUSED,
+             int controllers G_GNUC_UNUSED,
+             virCgroupPtr *group G_GNUC_UNUSED)
+{
+    virReportSystemError(ENXIO, "%s",
+                         _("Control groups not supported on this platform"));
+    return -1;
+}
+
+
 int
 virCgroupNewSelf(virCgroupPtr *group G_GNUC_UNUSED)
 {