[CRIU] [PATCH 0/6] mntns: restore files from correct mount points

Andrey Vagin avagin at openvz.org
Tue Aug 5 06:20:23 PDT 2014


Currently we give absolute path in openat(), so it opens relative
to the current root. The main idea is in the "file: use ralative path
for retoring files" patch.

v2: fix comments from Pavel
v3: a minor fix in the second patch.

Andrey Vagin (6):
  mount: don't set m->bind if m is already mounted
  mount: save local mount point paths on restore
  link-remap: open link-remap files from correct mountpoints
  notify: open files form a correct mount points (v2)
  zdtm: Check that files from alien mnt ns are handled (v2)
  zdtm: check link-remap and ghost files from a few mntns (v2)

 files-reg.c                                 |  62 ++++++-
 fsnotify.c                                  |  21 ++-
 include/files-reg.h                         |   1 +
 include/proc_parse.h                        |   4 +
 mount.c                                     |   7 +
 test/zdtm.sh                                |   8 +-
 test/zdtm/live/static/Makefile              |   4 +
 test/zdtm/live/static/mntns_link_ghost.c    |   1 +
 test/zdtm/live/static/mntns_link_remap.c    | 250 ++++++++++++++++++++++++++++
 test/zdtm/live/static/mntns_link_remap.opts |   1 +
 test/zdtm/live/static/mntns_open.c          | 134 +++++++++++++++
 11 files changed, 478 insertions(+), 15 deletions(-)
 create mode 120000 test/zdtm/live/static/mntns_link_ghost.c
 create mode 100644 test/zdtm/live/static/mntns_link_remap.c
 create mode 100644 test/zdtm/live/static/mntns_link_remap.opts
 create mode 100644 test/zdtm/live/static/mntns_open.c

--
1.8.5.3



More information about the CRIU mailing list