[CRIU] Losing logs after second restore?

Pavel Emelyanov xemul at parallels.com
Wed Sep 2 02:50:00 PDT 2015


On 09/02/2015 08:24 AM, Francisco Tolmasky wrote:
> So apparently node hates this (and it is expected behavior for it to through an error when its
> truncated: https://www.npmjs.com/package/epipebomb ). I am very unfamiliar with this, can yu
> explain why criu opens files with O_TRUNC flags (and what would happen if we changed that?).

Logs are opened with O_TRUNC to flush the old contents from it (if any) and
start fresh new logs. If we change this (dropping the flag) new log contents
would be added to the old ones.

-- Pavel


More information about the CRIU mailing list