[libvirt] [PATCH 2/1] vircgroup: Fix build issue mingw cross compile
John Ferlan
jferlan at redhat.com
Fri Mar 27 16:41:28 UTC 2015
Commit id '2dbfa716' exposed virCgroupDetectMountsFromFile, but did not
add the corresponding entry in the "#else /* !VIR_CGROUP_SUPPORTED */"
section of the module.
Signed-off-by: John Ferlan <jferlan at redhat.com>
---
src/util/vircgroup.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 093a146..7c59428 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -4021,6 +4021,17 @@ virCgroupAvailable(void)
int
+virCgroupDetectMountsFromFile(virCgroupPtr group ATTRIBUTE_UNUSED,
+ const char *path ATTRIBUTE_UNUSED,
+ bool checkLinks ATTRIBUTE_UNUSED)
+{
+ virReportSystemError(ENXIO, "%s",
+ _("Control groups not supported on this platform"));
+ return -1;
+}
+
+
+int
virCgroupNewPartition(const char *path ATTRIBUTE_UNUSED,
bool create ATTRIBUTE_UNUSED,
int controllers ATTRIBUTE_UNUSED,
--
2.1.0
More information about the libvir-list
mailing list