[CRIU] [PATCH v5 0/5] Save content of unmounted binfmt_misc

Kirill Tkhai ktkhai at virtuozzo.com
Thu Aug 4 06:48:28 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
v5: New patches 1-3.
    Do not search for binfmt_misc mounted: use opts.has_binfmt_misc.
    Do not count number of entries in binfmt_misc directory.
---

Kirill Tkhai (5):
      image: Add stat_image_at() function
      mount: Create binfmt_misc image w/o device suffix
      mount: Autodetect binfmt_misc
      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/image.c              |   19 ++++
 criu/include/cr_options.h |    1 
 criu/include/image.h      |    2 
 criu/include/mount.h      |    1 
 criu/mount.c              |  199 +++++++++++++++++++++++++++++++++++++++++++--
 6 files changed, 214 insertions(+), 9 deletions(-)

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


More information about the CRIU mailing list