be52b9f
From 099027082347d4c366d1f72e9e23d1939914d7bf Mon Sep 17 00:00:00 2001
be52b9f
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
be52b9f
Date: Fri, 24 May 2013 13:34:53 -0400
51b11df
Subject: [PATCH] Fix CPUShares configuration option
be52b9f
be52b9f
This fixes the error message "Unknown or unsupported cgroup attribute
be52b9f
CPUShares".
be52b9f
---
be52b9f
 src/core/cgroup-semantics.c | 2 +-
be52b9f
 1 file changed, 1 insertion(+), 1 deletion(-)
be52b9f
be52b9f
diff --git a/src/core/cgroup-semantics.c b/src/core/cgroup-semantics.c
674ca7d
index 82b02bbd78..7df9d014e9 100644
be52b9f
--- a/src/core/cgroup-semantics.c
be52b9f
+++ b/src/core/cgroup-semantics.c
be52b9f
@@ -255,7 +255,7 @@ static int map_blkio(const CGroupSemantics *s, const char *value, char **ret) {
be52b9f
 }
be52b9f
 
be52b9f
 static const CGroupSemantics semantics[] = {
be52b9f
-        { "cpu",     "cpu.shares",                 "CPUShare",              false, parse_cpu_shares,          NULL,       NULL },
be52b9f
+        { "cpu",     "cpu.shares",                 "CPUShares",             false, parse_cpu_shares,          NULL,       NULL },
be52b9f
         { "memory",  "memory.soft_limit_in_bytes", "MemorySoftLimit",       false, parse_memory_limit,        NULL,       NULL },
be52b9f
         { "memory",  "memory.limit_in_bytes",      "MemoryLimit",           false, parse_memory_limit,        NULL,       NULL },
be52b9f
         { "devices", "devices.allow",              "DeviceAllow",           true,  parse_device,              map_device, NULL },