[CRIU] [PATCH v3 0/4] Save content of unmounted binfmt_misc
    Kirill Tkhai 
    ktkhai at virtuozzo.com
       
    Wed Jun 29 04:48:57 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.
---
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 virtuozzo.com>
    
    
More information about the CRIU
mailing list