Commit dd62857a by Tycho Andersen Committed by Stéphane Graber

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: 's avatarTycho Andersen <tycho.andersen@canonical.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 8ba5ced7
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment