[CRIU] [PATCH 0/4] files: remove link_remaps when everything has been restored

Andrei Vagin avagin at openvz.org
Tue Dec 13 15:58:10 PST 2016


From: Andrei Vagin <avagin at virtuozzo.com>

Now we remove a link_remap file when all its files are restored.
It is wrong, because something else may fail and we will not be
able to repeat an attempt to restore processes again.

Andrei Vagin (4):
  files: create links with uid and gid which are known in userns
  test: execute mntns_ghost and mntns_link_remap in userns
  fault: check link_remaps if the restore fails at the last moment
  files: remove link_remaps when everything has been restoed

 criu/cr-restore.c                      |  27 ++--
 criu/files-reg.c                       | 221 +++++++++++++++++----------------
 criu/fsnotify.c                        |   6 -
 criu/include/fault-injection.h         |   1 +
 criu/include/files-reg.h               |   7 +-
 criu/mount.c                           |  11 +-
 test/jenkins/criu-fault.sh             |   4 +
 test/zdtm/static/mntns_ghost.desc      |   2 +-
 test/zdtm/static/mntns_link_remap.desc |   2 +-
 9 files changed, 146 insertions(+), 135 deletions(-)

-- 
2.7.4



More information about the CRIU mailing list