pkg/sysinfo
Antonio Murdaca 826c468f2c Move sysinfo out of daemon struct
sysinfo struct was initialized at daemon startup to make sure
kernel configs such as device cgroup are present and error out if not.
The struct was embedded in daemon struct making impossible to detect
if some system config is changed at daemon runtime (i.e. someone
umount the memory cgroup). This leads to container's starts failure if
some config is changed at daemon runtime.
This patch moves sysinfo out of daemon and initilize and check it when
needed (daemon startup, containers creation, contaienrs startup for
now).

Signed-off-by: Antonio Murdaca <runcom@linux.com>
(cherry picked from commit 472b6f66e03f9a85fe8d23098dac6f55a87456d8)
2015-08-06 15:46:09 -07:00
..
README.md Add some basic doc for SysInfo 2015-03-26 23:05:07 -04:00
sysinfo.go Check sysinfo for Cpuset cpu.shares and blkio 2015-08-05 22:35:18 +08:00
sysinfo_freebsd.go Fix golint warning on pkg/sysinfo 2015-08-01 18:24:49 +08:00
sysinfo_linux.go Move sysinfo out of daemon struct 2015-08-06 15:46:09 -07:00
sysinfo_linux_test.go cleanup sysinfo package 2015-06-17 20:41:14 -04:00
sysinfo_windows.go Fix golint warning on pkg/sysinfo 2015-08-01 18:24:49 +08:00

SysInfo stores information about which features a kernel supports.