[CRIU] [PATCH 00/14] mount: move mntinfo_tree to the namespace structure

Andrew Vagin avagin at parallels.com
Fri Apr 18 01:38:22 PDT 2014


This is part of the big series about nested mount namespaces.
You can find all patches from this set in my git:
https://github.com/avagin/crtools/tree/mnt_devel

Thanks.

On Thu, Apr 17, 2014 at 11:23:54PM +0400, Andrey Vagin wrote:
> We are going to support nested mount namespace. Each mount namespace has
> own tree of mounts, so we need to save root on the namespace structure.
> 
> Each time when we want to access a file, we need to determing its
> namespace and collect a proper root.
> 
> Andrey Vagin (14):
>   mount: return descriptor from mntns_collect_root
>   mount: save mount tree for each namespace
>   mount: move dump_mnt_namespaces in mount.c
>   mount: separate collect_mnt_ns from dump_mnt_ns
>   resotre: collect mounts of current mntns
>   mount: __lookup_mnt_id returns the first mi if mnt_id == -1
>   mount: set nsid for each mount point
>   mounts: mntns_collect_root in __open_mountpoint
>   irmap: mntns_collect_root in irmap_lookup
>   mount: add a function to get a temporary root for mntns
>   mount: use per-ns list of mount-points in clean_mnt_ns and free_mnt_ns
>   check: collect mounts of the current mntns
>   mount: use per-namespace mntinfo_tree
>   mount: don't open the same root twise
> 
>  cr-check.c           |  20 ++--
>  cr-dump.c            |  15 +--
>  cr-restore.c         |   9 +-
>  files-reg.c          |  70 ++++++++++----
>  include/mount.h      |  16 +++-
>  include/namespaces.h |   6 ++
>  include/proc_parse.h |   3 +-
>  include/pstree.h     |   2 +
>  irmap.c              |   4 +
>  mount.c              | 260 ++++++++++++++++++++++++++++++++++++++++-----------
>  namespaces.c         |  23 -----
>  proc_parse.c         |   4 +-
>  sk-unix.c            |  13 ++-
>  13 files changed, 322 insertions(+), 123 deletions(-)
> 
> -- 
> 1.8.5.3
> 


More information about the CRIU mailing list