From: Gui Jianfeng Date: Tue, 8 Feb 2011 17:41:17 +0000 (-0700) Subject: cgroup: Enable cgroup hierarchy for blkio cgroup X-Git-Tag: v0.8.8~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b58241a6902285a598acde6387274658bbcce4ad;p=thirdparty%2Flibvirt.git cgroup: Enable cgroup hierarchy for blkio cgroup Enable cgroup hierarchy for blkio cgroup Acked-by: Daniel P. Berrange Signed-off-by: Gui Jianfeng --- diff --git a/AUTHORS b/AUTHORS index 6cdc729f4b..0b904ce4a7 100644 --- a/AUTHORS +++ b/AUTHORS @@ -152,6 +152,7 @@ Patches have also been contributed by: Alon Levy Hero Phương Zdenek Styblik + Gui Jianfeng [....send patches to get your name here....] diff --git a/src/util/cgroup.c b/src/util/cgroup.c index cd9caba283..309f4e9b58 100644 --- a/src/util/cgroup.c +++ b/src/util/cgroup.c @@ -37,7 +37,7 @@ VIR_ENUM_IMPL(virCgroupController, VIR_CGROUP_CONTROLLER_LAST, "cpu", "cpuacct", "cpuset", "memory", "devices", - "freezer"); + "freezer", "blkio"); struct virCgroupController { int type; diff --git a/src/util/cgroup.h b/src/util/cgroup.h index 964da7a102..67b1299023 100644 --- a/src/util/cgroup.h +++ b/src/util/cgroup.h @@ -22,6 +22,7 @@ enum { VIR_CGROUP_CONTROLLER_MEMORY, VIR_CGROUP_CONTROLLER_DEVICES, VIR_CGROUP_CONTROLLER_FREEZER, + VIR_CGROUP_CONTROLLER_BLKIO, VIR_CGROUP_CONTROLLER_LAST };