1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

Fix CPUShares configuration option

This fixes the error message "Unknown or unsupported cgroup attribute
CPUShares".
This commit is contained in:
Eelco Dolstra 2013-05-24 13:34:53 -04:00 committed by Zbigniew Jędrzejewski-Szmek
parent 62b3e928de
commit ccd90a976d

View 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 },