[CRIU] [PATCH 0/2] files: Add ability to skip certain files for size check

Cyrill Gorcunov gorcunov at openvz.org
Thu Mar 23 08:20:15 PDT 2017


During containers testing we discovered that if some application
ran acct() syscall the size check upon restore will fail becaue
kernel updates the file at task exit.

At the moment there is no way to figure out which file been used
in acct() syscall so we should provide a user an option to be
able to skip such specific files on both dump and restore.

For this sake --skip-fsize-path option introduced.

Cyrill Gorcunov (2):
  reg-files: Allow to skip file size checking via --skip-fsize-path
    option
  rpc: Add skip_fsize_paths option

 criu/cr-service.c         |  9 +++++++++
 criu/crtools.c            | 18 ++++++++++++++++++
 criu/files-reg.c          | 28 +++++++++++++++++++++++++---
 criu/include/cr_options.h |  2 ++
 images/rpc.proto          |  1 +
 lib/c/criu.c              | 25 +++++++++++++++++++++++++
 lib/c/criu.h              |  2 ++
 7 files changed, 82 insertions(+), 3 deletions(-)

-- 
2.7.4



More information about the CRIU mailing list