Skip to content
Commit 044011e5 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov
Browse files

reg-files: skip size for O_APPEND|O_WRONLY files, v2



This is common for log files, when a number of processes
are writing something into one file. Currently, if someone
wrote something to log since dump happened, on restore criu
will complain about "File has bad size" and refuse to restore.

If file is opened with O_APPEND|O_WRONLY flags it is going to
jump to the EOF anyway.

v2, use O_ACCMODE and separate helper

Signed-off-by: default avatarRuslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent c625b4fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment