runc/libcontainer/cgroups/fs
Phil Estes 0b5581fd28 Handle memory swappiness as a pointer to handle default/unset case
This prior fix to set "-1" explicitly was lost, and it is simpler to use
the same pointer type from the OCI spec to handle nil pointer == -1 ==
unset case.

Also, as a nearly humorous aside, there was a test for MemorySwappiness
that was actually setting Memory, and it was passing because of this
bug (as it was always setting everyone's MemorySwappiness to zero!)

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2016-02-24 09:02:06 -06:00
..
apply_raw.go Move the process outside of the systemd cgroup 2016-02-19 11:26:46 -08:00
apply_raw_test.go libcontainer: cgroups: fs: add cgroup path safety unit tests 2016-02-14 00:37:21 +11:00
blkio.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
blkio_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
cpu.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
cpu_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
cpuacct.go Rename parent and data 2015-11-05 19:12:53 +08:00
cpuset.go Move pathClean to libcontainer/utils.CleanPath 2016-02-09 16:21:58 -08:00
cpuset_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
devices.go Do not set devices cgroup entries if in a user namespace 2016-02-16 19:39:43 -08:00
devices_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
freezer.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
freezer_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
fs_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
hugetlb.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
hugetlb_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
memory.go Handle memory swappiness as a pointer to handle default/unset case 2016-02-24 09:02:06 -06:00
memory_test.go Handle memory swappiness as a pointer to handle default/unset case 2016-02-24 09:02:06 -06:00
name.go Move the process outside of the systemd cgroup 2016-02-19 11:26:46 -08:00
net_cls.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
net_cls_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
net_prio.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
net_prio_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
perf_event.go Rename parent and data 2015-11-05 19:12:53 +08:00
pids.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
pids_test.go libcontainer: cgroups: add pids controller support 2016-01-12 10:06:32 +11:00
stats_util_test.go Add limit value to memory stats 2016-02-03 11:54:09 -08:00
util_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
utils.go Add more context around some error cases 2015-10-30 10:55:48 -07:00
utils_test.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00