[CRIU] [PATCH 08/11] net: allow to dump and restore more than one network namespace
Dmitry Safonov
0x7f454c46 at gmail.com
Fri Feb 3 04:26:22 PST 2017
Doing UTS & IPC namespaces over your patches set, have found
a minor thing:
2017-02-02 3:04 GMT+03:00 Andrei Vagin <avagin at openvz.org>:
> diff --git a/criu/pstree.c b/criu/pstree.c
> index 833b3d0..bce7b72 100644
> --- a/criu/pstree.c
> +++ b/criu/pstree.c
> @@ -14,6 +14,8 @@
> #include "mount.h"
> #include "dump.h"
> #include "util.h"
> +#include "net.h"
> +
> #include "protobuf.h"
> #include "images/pstree.pb-c.h"
> #include "crtools.h"
> @@ -472,6 +474,8 @@ static int read_pstree_ids(struct pstree_item *pi)
> if (pi->ids->has_mnt_ns_id) {
> if (rst_add_ns_id(pi->ids->mnt_ns_id, pi, &mnt_ns_desc))
> return -1;
> + if (rst_add_ns_id(pi->ids->net_ns_id, pi, &net_ns_desc))
> + return -1;
Shouldn't it be under?
if (pi->ids->has_net_ns_id)
--
Dmitry
More information about the CRIU
mailing list