<div dir="ltr">So apparently node hates this (and it is expected behavior for it to through an error when its truncated: <a href="https://www.npmjs.com/package/epipebomb">https://www.npmjs.com/package/epipebomb</a> ). 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?).<div><br></div><div>Thanks,</div><div><br></div><div>Francisco</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 21, 2015 at 11:18 AM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/21/2015 09:16 PM, Francisco Tolmasky wrote:<br>
> Sorry, just so I understand correctly, does this result in expected behavior that *new*<br>
> logs won't show up<br>
<br>
</span>Well, no, new logs will (should) show up in the file. Provided criu starts at all :)<br>
<span class=""><br>
> (I see the logs from the initial run and restore, but no more after that)<br>
><br>
</span><span class="">> On Friday, August 21, 2015, Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>>> wrote:<br>
><br>
> On 08/20/2015 08:09 AM, Francisco Tolmasky wrote:<br>
> > Does anything come to mind as to why we wouldn’t see logs after two restores?<br>
><br>
> CRIU opens log files with O_TRUNC flags, thus killing the previous contents of it.<br>
><br>
><br>
><br>
> --<br>
> Francisco Tolmasky<br>
</span>> <a href="http://www.tolmasky.com" rel="noreferrer" target="_blank">www.tolmasky.com</a> <<a href="http://www.tolmasky.com" rel="noreferrer" target="_blank">http://www.tolmasky.com</a>><br>
> <a href="mailto:tolmasky@gmail.com">tolmasky@gmail.com</a> <mailto:<a href="mailto:tolmasky@gmail.com">tolmasky@gmail.com</a>><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Francisco Tolmasky<br><a href="http://www.tolmasky.com" target="_blank">www.tolmasky.com</a><br><a href="mailto:tolmasky@gmail.com" target="_blank">tolmasky@gmail.com</a></div>
</div>