[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 1/3] cgroup: Enable cgroup hierarchy for blkio cgroup



On Sun, Jan 23, 2011 at 02:17:46PM +0800, Gui Jianfeng wrote:
> Enable cgroup hierarchy for blkio cgroup.
> 
> Signed-off-by: Gui Jianfeng <guijianfen cn fujitsu com>
> ---
>  src/util/cgroup.c |    2 +-
>  src/util/cgroup.h |    1 +
>  2 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/src/util/cgroup.c b/src/util/cgroup.c
> index cd9caba..309f4e9 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 964da7a..67b1299 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
>  };

ACK

Daniel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]