]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgroups/cgfs.c
Sort the cgroup memory settings before applying.
authorKien Truong <duckientruong@gmail.com>
Sun, 5 Apr 2015 23:46:22 +0000 (23:46 +0000)
committerKien Truong <duckientruong@gmail.com>
Mon, 4 May 2015 23:21:59 +0000 (00:21 +0100)
commitaaf26830526092805f9c6d87548edacff77727da
treeaeeb361bbc3fc68142c2b6db17947d1f48048389
parent44481bff6bf0b78a97358a81a102111be62185f1
Sort the cgroup memory settings before applying.

Add a function to sort the cgroup settings before applying.
Currently, the function will put memory.memsw.limit_in_bytes after
memory.limit_in_bytes setting so the container will start
regardless of the order specified in the input. Fix #453

Signed-off-by: Kien Truong <duckientruong@gmail.com>
src/lxc/cgfs.c
src/lxc/cgmanager.c
src/lxc/conf.c
src/lxc/conf.h