[CRIU] [PATCH v2 0/4] Save content of unmounted binfmt_misc

Kirill Tkhai ktkhai at virtuozzo.com
Fri Jun 24 03:45:49 PDT 2016


Umount does not remove binfmt_misc content. If it's mounted once again,
the same entries remain registered. Criu does not dump handle such cases.

This patch forces mounting of unmounted binfmt_misc, and make it restore
in the right way. 

v2: Cleanup mounted binfmt_misc in case of dump failed.
    Use get_fd_mntid().
    Print more info in error case.
---

Kirill Tkhai (4):
      ns: Split __get_ns_id() in subfunction
      mount: Add forced mounts sceleton
      mount: Forced mount unmounted binfmt_misc to do not lost its content
      mount: Umount forced mounts on restore


 criu/cr-dump.c            |   14 ++++
 criu/include/mount.h      |    3 +
 criu/include/namespaces.h |    1 
 criu/mount.c              |  155 +++++++++++++++++++++++++++++++++++++++++++++
 criu/namespaces.c         |   50 ++++++++-------
 images/mnt.proto          |    1 
 6 files changed, 203 insertions(+), 21 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai at cirtuozzo.com>


More information about the CRIU mailing list