|
|
9119d9 |
From 67c7c9443dee23d8dfff5e015da4f81afaab95fd Mon Sep 17 00:00:00 2001
|
|
|
9119d9 |
Message-Id: <67c7c9443dee23d8dfff5e015da4f81afaab95fd@dist-git>
|
|
|
9119d9 |
From: John Ferlan <jferlan@redhat.com>
|
|
|
9119d9 |
Date: Thu, 18 Sep 2014 09:29:56 -0400
|
|
|
9119d9 |
Subject: [PATCH] vircgroup: Fix broken builds without cgroups
|
|
|
9119d9 |
|
|
|
9119d9 |
https://bugzilla.redhat.com/show_bug.cgi?id=1101574
|
|
|
9119d9 |
|
|
|
9119d9 |
I missed adding virCgroupNewIOThread to the !VIR_CGROUP_SUPPORTED
|
|
|
9119d9 |
|
|
|
9119d9 |
Pushing as build breaker
|
|
|
9119d9 |
|
|
|
9119d9 |
(cherry picked from commit e45f0d057ec82cac819ea5a600a5362f368ec68e)
|
|
|
9119d9 |
Signed-off-by: John Ferlan <jferlan@redhat.com>
|
|
|
9119d9 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
9119d9 |
---
|
|
|
9119d9 |
src/util/vircgroup.c | 12 ++++++++++++
|
|
|
9119d9 |
1 file changed, 12 insertions(+)
|
|
|
9119d9 |
|
|
|
9119d9 |
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
|
|
|
9119d9 |
index 2842831..152ef96 100644
|
|
|
9119d9 |
--- a/src/util/vircgroup.c
|
|
|
9119d9 |
+++ b/src/util/vircgroup.c
|
|
|
9119d9 |
@@ -3983,6 +3983,18 @@ virCgroupNewEmulator(virCgroupPtr domain ATTRIBUTE_UNUSED,
|
|
|
9119d9 |
|
|
|
9119d9 |
|
|
|
9119d9 |
int
|
|
|
9119d9 |
+virCgroupNewIOThread(virCgroupPtr domain ATTRIBUTE_UNUSED,
|
|
|
9119d9 |
+ int iothreadid ATTRIBUTE_UNUSED,
|
|
|
9119d9 |
+ bool create ATTRIBUTE_UNUSED,
|
|
|
9119d9 |
+ virCgroupPtr *group ATTRIBUTE_UNUSED)
|
|
|
9119d9 |
+{
|
|
|
9119d9 |
+ virReportSystemError(ENXIO, "%s",
|
|
|
9119d9 |
+ _("Control groups not supported on this platform"));
|
|
|
9119d9 |
+ return -1;
|
|
|
9119d9 |
+}
|
|
|
9119d9 |
+
|
|
|
9119d9 |
+
|
|
|
9119d9 |
+int
|
|
|
9119d9 |
virCgroupNewDetect(pid_t pid ATTRIBUTE_UNUSED,
|
|
|
9119d9 |
int controllers ATTRIBUTE_UNUSED,
|
|
|
9119d9 |
virCgroupPtr *group ATTRIBUTE_UNUSED)
|
|
|
9119d9 |
--
|
|
|
9119d9 |
2.1.0
|
|
|
9119d9 |
|