<div dir="ltr"><div class="gmail_default" style="font-size:small">But I move the file to another box, via an NFS mount.</div><div class="gmail_default" style="font-size:small">That's why my approach is better. I build a list of files, rotate, and then move the files across the Internet.</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020 at 10:32 AM Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>On 02.10.2020 17:23, Saint Michael
wrote:<br>
</div>
<blockquote type="cite">the
order of actions seems to be problematic. what if I issue a
rename, move command, and opensips is actually at the same time
writing to the file?</blockquote>
<p><tt>:) that is the part which confuses everyone when working with
this module (myself included, when I began using it).</tt></p>
<p><tt>The answer: it simply works! OpenSIPS will continue writing
to the <b>moved </b>file until you <b>rotate</b> it</tt><tt>,
as the "move" operation simply changes the inode of the file
(its reference, hook, pointer, etc.), without touching its
contents. This seems to work well on ext filesystems, such as
ext4. I have a feeling this is not the case for all
filesystems, though.</tt></p>
<pre cols="72">--
Liviu Chircu
<a href="http://www.twitter.com/liviuchircu" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>