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

Richard Laager rlaager at wiktel.com
Thu Feb 2 08:56:46 CET 2012


The posix_fallocate() version is definitely cleaner. Again, this patch
is only lightly tested.

Also, I happened to notice a tiny bit of duplicated code, so I've
attached a separate patch for that. It seems so obviously duplicated
that I've looked at it several times to make sure I'm not missing
something.

-- 
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rrdtool-posix_fallocate.patch
Type: text/x-patch
Size: 1868 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120202/42ac9c71/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rrdtool-open-remove-duplicate-code.patch
Type: text/x-patch
Size: 385 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120202/42ac9c71/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120202/42ac9c71/attachment-0001.pgp 


More information about the rrd-developers mailing list