[CRIU] [PATCH v4 0/3] Save content of unmounted binfmt_misc

Kirill Tkhai ktkhai at virtuozzo.com
Wed Jul 20 03:12:54 PDT 2016


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

This patch forces mounting of unmounted binfmt_misc on dump, 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.
v3: Close dir before umounting.
v4: Do not save temporary mountpoint in image.
    Add fix 0/3
---

Kirill Tkhai (3):
      proc_parce: Fix assignment of ns_mountpoint
      mount: Forced mount unmounted binfmt_misc to do not lost its content
      mount: Restore binfmt_misc content in case of missing mount


 criu/cr-dump.c       |    1 
 criu/include/mount.h |    1 
 criu/mount.c         |  216 +++++++++++++++++++++++++++++++++++++++++++++++++-
 criu/proc_parse.c    |    2 
 4 files changed, 216 insertions(+), 4 deletions(-)

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


More information about the CRIU mailing list