Commit f2382707 authored by Eelco Dolstra's avatar Eelco Dolstra Committed by Michael Stapelberg

Fix CPUShares configuration option

This fixes the error message "Unknown or unsupported cgroup attribute
CPUShares".
parent 4a14c273
...@@ -255,7 +255,7 @@ static int map_blkio(const CGroupSemantics *s, const char *value, char **ret) { ...@@ -255,7 +255,7 @@ static int map_blkio(const CGroupSemantics *s, const char *value, char **ret) {
} }
static const CGroupSemantics semantics[] = { 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.soft_limit_in_bytes", "MemorySoftLimit", false, parse_memory_limit, NULL, NULL },
{ "memory", "memory.limit_in_bytes", "MemoryLimit", 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 }, { "devices", "devices.allow", "DeviceAllow", true, parse_device, map_device, NULL },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment