Re: bus error when disk is full, with mmap & sparse file

Bernhard Reutner-Fischer <[email protected]> Thu, 2 Feb 2012 08:23:27 +0100
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <CAC1BbcSKz8r1GG2izQY8U7aX-LPj+=pBBWj0HqVUUAL9GpPMPQ__38300.5550400869$1328167425$gmane$org@mail.gmail.com>
On Feb 2, 2012 6:35 AM, "Richard Laager" <[email protected]> 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.

_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers