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:Ruslan Kuprieiev <rkuprieiev@cloudlinux.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
Showing
Please
register
or
sign in
to comment