[CRIU] [PATCH] reg-files: skip size for O_APPEND|O_WRONLY files, v2
Pavel Emelyanov
xemul at parallels.com
Fri Mar 20 06:30:27 PDT 2015
On 03/19/2015 08:25 PM, Ruslan Kuprieiev wrote:
> From: Ruslan Kuprieiev <rkuprieiev at cloudlinux.com>
>
> 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: Ruslan Kuprieiev <rkuprieiev at cloudlinux.com>
Applied, thanks
More information about the CRIU
mailing list