]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
c/r: enable hugetlbfs in criu
authorTycho Andersen <tycho.andersen@canonical.com>
Mon, 20 Apr 2015 16:47:31 +0000 (10:47 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 1 Jul 2015 15:50:24 +0000 (11:50 -0400)
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 <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/criu.c

index ca8344fedabc55c84d4bd4033edecd6535cf3c0c..1913473e8231547d94ca05956ab6b5a632cdec41 100644 (file)
@@ -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");