[CRIU] [PATCH 00/11] files: open files from correct mount points

Andrey Vagin avagin at openvz.org
Thu Jul 24 14:12:24 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.

Andrey Vagin (11):
  zdtm: rollback cwd only if a test case is executed in namespaces
  mount: execute collect shared for all mounts
  mount: save remapped links on tmpfs
  mount: don't set m->bind if m is already mounted
  mount: save the origin mount point path on restore
  mount: add helper mntns_get_root_by_mnt_id
  link-remap: open link-remap files from correct mountpoints
  notify: open files form a correct mount points
  file: use ralative path for retoring files
  zdtm: Check that files from alien mnt ns are handled (v2)
  zdtm: check link-remap and ghost files from a few mntns

 cr-dump.c                                   |   6 +-
 files-reg.c                                 |  83 ++++++---
 fsnotify.c                                  |  20 ++-
 include/files-reg.h                         |   1 +
 include/mount.h                             |   1 +
 include/proc_parse.h                        |   1 +
 mount.c                                     |  44 ++++-
 test/zdtm.sh                                |  10 +-
 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 +++++++++++++++
 13 files changed, 524 insertions(+), 32 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