[CRIU] [PATCH 1/2] mount: don't destruct an external mount-namespace (v2)

Pavel Emelyanov xemul at parallels.com
Mon Jul 8 05:39:46 EDT 2013


On 07/05/2013 12:19 PM, Andrey Vagin wrote:
> If a parent mount point is shared with exteranl mntns, a child will be
> umounted from the external mntns too.
> 
> For example:
> $ mount -t tmpfs xxx /root/tmp/
> $ mount --make-shared tmp
> $ mkdir tmp/xxx
> $ mount -t tmpfs xxx /root/tmp/xxx
> $ touch tmp/xxx/a
> 
> $ unshare -m umount tmp/xxx
> $ ls -l tmp/xxx/a
> ls: cannot access tmp/xxx/a: No such file or directory
> 
> This patch changes a parent mnt to private for umounting childrens.
> 
> v2: exit if a mount point can not be marked ad private
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Both applied, thanks (don't forget about PATCH 0/N in your series please)


More information about the CRIU mailing list