[CRIU] [PATCH 03/15] mntns: close_proc before clean up mounts

Andrew Vagin avagin at parallels.com
Thu Jan 10 06:31:50 EST 2013


On Thu, Jan 10, 2013 at 03:16:58PM +0400, Pavel Emelyanov wrote:
> On 01/10/2013 02:00 PM, Andrey Vagin wrote:
> > 
> > Signed-off-by: Andrey Vagin <avagin at openvz.org>
> > ---
> >  mount.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/mount.c b/mount.c
> > index 1069928..843e3bb 100644
> > --- a/mount.c
> > +++ b/mount.c
> > @@ -688,6 +688,8 @@ int prepare_mnt_ns(int ns_pid)
> >  
> >  	pr_info("Restoring mount namespace\n");
> >  
> > +	close_proc();
> > +
due to PROC_FD_OFF
mount returns -EBUSY, if someone has an opened file
> >  	/*
> >  	 * The new mount namespace is filled with the mountpoint
> >  	 * clones from the original one. We have to umount them
> > 
> 
> Why?


More information about the CRIU mailing list