]> git.proxmox.com Git - mirror_lxc.git/commit
c/r: use criu's "full" mode for cgroups
authorTycho Andersen <tycho.andersen@canonical.com>
Mon, 27 Jun 2016 22:24:09 +0000 (22:24 +0000)
committerTycho Andersen <tycho.andersen@canonical.com>
Mon, 27 Jun 2016 22:24:09 +0000 (22:24 +0000)
commit0a5fc6dfa772b787b9c06896d348b2137edf0cba
tree2917bf169beb6f9bca1c0965945243b05b765786
parent4737d51a62570f28e98e4b9735a1aca493cb71ca
c/r: use criu's "full" mode for cgroups

A while ago cgroup modes were introduced to CRIU, which slightly changed
the behavior w.r.t. cgroups under the hood. What we're really after is
criu's --full mode, i.e. even if a particular cgroup directory exists
(in particular /lxc/$container[-$number] will, since we create it), we
should restore perms on that cgroup.

Things worked just fine for actual properties (except "special" properties
as criu refers to them, which I've just sent a patch for) because liblxc
creates no subdirectories, just the TLD.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
src/lxc/criu.c