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

Pavel Emelyanov xemul at virtuozzo.com
Thu Mar 23 08:50:23 PDT 2017


On 03/23/2017 06:20 PM, Cyrill Gorcunov wrote:
> 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.

I don't like the idea of such an option :( I'd rather agree on
some quirk inside the criu code to skip files of that kind.

-- Pavel

> 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(-)
> 



More information about the CRIU mailing list