chiark / gitweb /
Fix CPUShares configuration option
authorEelco Dolstra <eelco.dolstra@logicblox.com>
Fri, 24 May 2013 17:34:53 +0000 (13:34 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 May 2013 04:43:38 +0000 (00:43 -0400)
This fixes the error message "Unknown or unsupported cgroup attribute
CPUShares".

src/core/cgroup-semantics.c

index 82b02bbd78b3854bcd7cc0def8cb305b54e03512..7df9d014e9970e90c0844fc1e67b9594c03051e3 100644 (file)
@@ -255,7 +255,7 @@ static int map_blkio(const CGroupSemantics *s, const char *value, char **ret) {
 }
 
 static const CGroupSemantics semantics[] = {
-        { "cpu",     "cpu.shares",                 "CPUShare",              false, parse_cpu_shares,          NULL,       NULL },
+        { "cpu",     "cpu.shares",                 "CPUShares",             false, parse_cpu_shares,          NULL,       NULL },
         { "memory",  "memory.soft_limit_in_bytes", "MemorySoftLimit",       false, parse_memory_limit,        NULL,       NULL },
         { "memory",  "memory.limit_in_bytes",      "MemoryLimit",           false, parse_memory_limit,        NULL,       NULL },
         { "devices", "devices.allow",              "DeviceAllow",           true,  parse_device,              map_device, NULL },