[CRIU] [PATCH 00/14] mount: move mntinfo_tree to the namespace structure
Andrey Vagin
avagin at openvz.org
Thu Apr 17 12:23:54 PDT 2014
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