Quoting Tycho Andersen (tycho.ander...@canonical.com):
> This option is required when migrating containers across hosts; it is used to
> restore inotify via file paths instead of file handles, which aren't preserved
> across hosts.
> 
> Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>

Acked-by: Serge E. Hallyn <serge.hal...@ubuntu.com>

> ---
>  src/lxc/lxccontainer.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index cd0f7df..3e1bc33 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -3546,11 +3546,12 @@ static int read_criu_file(const char *directory, 
> const char *file, int netnr, ch
>  static void exec_criu(struct criu_opts *opts)
>  {
>       char **argv, log[PATH_MAX];
> -     int static_args = 13, argc = 0, i, ret;
> +     int static_args = 14, argc = 0, i, ret;
>  
>       /* The command line always looks like:
> -      * criu $(action) --tcp-established --file-locks --link-remap 
> --manage-cgroups \
> -      *     --action-script foo.sh -D $(directory) -o 
> $(directory)/$(action).log
> +      * criu $(action) --tcp-established --file-locks --link-remap 
> --force-irmap \
> +      * --manage-cgroups action-script foo.sh -D $(directory) \
> +      * -o $(directory)/$(action).log
>        * +1 for final NULL */
>  
>       if (strcmp(opts->action, "dump") == 0) {
> @@ -3599,6 +3600,7 @@ static void exec_criu(struct criu_opts *opts)
>       DECLARE_ARG("--tcp-established");
>       DECLARE_ARG("--file-locks");
>       DECLARE_ARG("--link-remap");
> +     DECLARE_ARG("--force-irmap");
>       DECLARE_ARG("--manage-cgroups");
>       DECLARE_ARG("--action-script");
>       DECLARE_ARG(LIBEXECDIR "/lxc/lxc-restore-net");
> -- 
> 1.9.1
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to