<p>On Feb 2, 2012 6:35 AM, "Richard Laager" <<a href="mailto:rlaager@wiktel.com" target="_blank">rlaager@wiktel.com</a>> wrote:<br>
><br>
> I stumbled across this thread:<br>
> <a href="http://permalink.gmane.org/gmane.comp.db.rrdtool.devel/4102" target="_blank">http://permalink.gmane.org/gmane.comp.db.rrdtool.devel/4102</a><br>
><br>
> I've attached a patch that uses fallocate(), which may address this<br>
> issue. Also, it should be faster than filling the file with zeros from<br>
> userspace and may also decrease file fragmentation. I've only lightly<br>
> tested the patch.</p>
<p>The patch sounds conceptually OK to me, but please use posix_fallocate() instead.</p>