[CRIU] [PATCH 01/12] mounts: initialize root before dumping mount namespace

Andrew Vagin avagin at parallels.com
Tue Mar 11 00:39:32 PDT 2014


On Thu, Mar 06, 2014 at 07:16:09PM +0400, Pavel Emelyanov wrote:
> On 01/10/2014 05:49 PM, Andrey Vagin wrote:
> > It's used in open_mountpoint(), which is used in dump_tmpfs() and in
> > other callbacks.
> > 
> > Signed-off-by: Andrey Vagin <avagin at openvz.org>
> > ---
> >  mount.c | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/mount.c b/mount.c
> > index beec859..e21832c 100644
> > --- a/mount.c
> > +++ b/mount.c
> > @@ -776,6 +776,9 @@ int dump_mnt_ns(int ns_pid, int ns_id)
> >  	if (img_fd < 0)
> >  		return -1;
> >  
> > +	if (mntns_collect_root(ns_pid))
> > +		return -1;
> > +
> >  	pm = parse_mountinfo(ns_pid);
> >  	if (!pm) {
> >  		pr_err("Can't parse %d's mountinfo\n", ns_pid);
> > 
> 
> 
> Already there.

No, there is not.


More information about the CRIU mailing list