[CRIU] [PATCH 06/12] [v3] netns: dump and restore network namespace ID-s
Andrew Vagin
avagin at virtuozzo.com
Tue Mar 28 08:09:26 PDT 2017
On Tue, Mar 28, 2017 at 04:59:51PM +0300, Kirill Tkhai wrote:
> On 22.03.2017 06:21, Andrei Vagin wrote:
> > From: Andrei Vagin <avagin at virtuozzo.com>
> > @@ -1802,6 +1947,17 @@ int prepare_net_namespaces()
> >
> > }
> >
> > + for (nsid = ns_ids; nsid != NULL; nsid = nsid->next) {
> > + if (nsid->nd != &net_ns_desc)
> > + continue;
> > +
> > + if (switch_ns_by_fd(nsid->net.ns_fd, &net_ns_desc, NULL))
> > + goto err;
>
> You again do not restore initial net_ns :( I talked about that before
Sorry, maybe I skiped this comment. I will send a pach today. Thank you!
>
> > +
> > + if (prepare_net_ns(nsid))
> > + goto err;
> > + }
> > +
More information about the CRIU
mailing list