[rrd-developers] bus error when disk is full, with mmap & sparse file

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Feb 2 08:23:27 CET 2012


On Feb 2, 2012 6:35 AM, "Richard Laager" <rlaager at wiktel.com> wrote:
>
> I stumbled across this thread:
> http://permalink.gmane.org/gmane.comp.db.rrdtool.devel/4102
>
> I've attached a patch that uses fallocate(), which may address this
> issue. Also, it should be faster than filling the file with zeros from
> userspace and may also decrease file fragmentation. I've only lightly
> tested the patch.

The patch sounds conceptually OK to me, but please use posix_fallocate()
instead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120202/3e22be33/attachment.htm 


More information about the rrd-developers mailing list