From: Tycho Andersen Date: Mon, 20 Apr 2015 16:47:31 +0000 (-0600) Subject: c/r: enable hugetlbfs in criu X-Git-Tag: lxc-1.1.3~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9455742d3eb8ef2c911cd660c91fc00354d0b6d;p=thirdparty%2Flxc.git c/r: enable hugetlbfs in criu In vivid containers hugetlbfs is mounted, but it is not one of the hardcoded fses in criu, so we need to tell criu that it is okay to automount it. Signed-off-by: Tycho Andersen Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index ca8344fed..1913473e8 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 = 18, argc = 0, i, ret; + int static_args = 20, argc = 0, i, ret; int netnr = 0; struct lxc_list *it; @@ -61,6 +61,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 * +1 for final NULL */ if (strcmp(opts->action, "dump") == 0) { @@ -120,6 +121,8 @@ void exec_criu(struct criu_opts *opts) DECLARE_ARG("auto"); DECLARE_ARG("--enable-external-sharing"); DECLARE_ARG("--enable-external-masters"); + DECLARE_ARG("--enable-fs"); + DECLARE_ARG("hugetlbfs"); DECLARE_ARG("-D"); DECLARE_ARG(opts->directory); DECLARE_ARG("-o");