From: Tycho Andersen Date: Fri, 14 Aug 2015 16:24:47 +0000 (-0600) Subject: c/r: enable tracefs X-Git-Tag: lxc-2.0.0.beta1~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4543292d764b61b89192d7c4f9f143e570aac2;p=thirdparty%2Flxc.git c/r: enable tracefs tracefs is a new filesystem that can be mounted by users. Only the options and fs name need to be passed to restore the state, so we can use criu's auto fs feature. Signed-off-by: Tycho Andersen Acked-by: Stéphane Graber --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index 88dc8cd21..798036a95 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -49,7 +49,7 @@ lxc_log_define(lxc_criu, lxc); void exec_criu(struct criu_opts *opts) { char **argv, log[PATH_MAX]; - int static_args = 20, argc = 0, i, ret; + int static_args = 22, argc = 0, i, ret; int netnr = 0; struct lxc_list *it; @@ -60,7 +60,7 @@ void exec_criu(struct criu_opts *opts) * --manage-cgroups action-script foo.sh -D $(directory) \ * -o $(directory)/$(action).log --ext-mount-map auto * --enable-external-sharing --enable-external-masters - * --enable-fs hugetlbfs + * --enable-fs hugetlbfs --enable-fs tracefs * +1 for final NULL */ if (strcmp(opts->action, "dump") == 0) { @@ -122,6 +122,8 @@ void exec_criu(struct criu_opts *opts) DECLARE_ARG("--enable-external-masters"); DECLARE_ARG("--enable-fs"); DECLARE_ARG("hugetlbfs"); + DECLARE_ARG("--enable-fs"); + DECLARE_ARG("tracefs"); DECLARE_ARG("-D"); DECLARE_ARG(opts->directory); DECLARE_ARG("-o");