[CRIU] [PATCH 3/4] cg: Add ability to dump specified controllers only

Cyrill Gorcunov gorcunov at gmail.com
Tue May 3 08:33:49 PDT 2016


On Tue, May 03, 2016 at 09:42:46AM -0500, Tycho Andersen wrote:
> On Tue, May 03, 2016 at 02:30:18PM +0300, Cyrill Gorcunov wrote:
> > For example in containers case there might be a number
> > of controllers mounted on the node which we should not
> > carry inside image when container is migrated. So
> > add ability to dump predefined controllers only
> > specified via command line --cgroup-dump-controller
> > option.
> > 
> > Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> 
> So I guess I would implement this as a blacklist, i.e.
> --cgroup-exclude-controller instead of a whitelist, but it's not a big
> issue for me since I doubt liblxc will be using this.

The problem is that cgroup names might be dynamic, for example
one can mount some new cgroup with "name=xxx" and when we simply
don't know about it at all, so what we will do instead -- just
provide all controllers we know about a list and that all.


More information about the CRIU mailing list