graphite-project/carbon — pull request #13 by slackhappy (2012-07-25 22:21:21+00:00)
Title: add fallocate support (optional) to carbon

This is related to pull-request https://github.com/graphite-project/whisper/pull/7 in the whisper project.

This change is related to an existing bug: https://bugs.launchpad.net/whisper/+bug/957827

A new setting, WHISPER_FALLOCATE_CREATE (default False), enables whisper to allocate the remainder of a new file using posix_fallocate (which can be very efficient on some newer filesystems). It works on old filesystems as well, but is no more efficient than writing zeros.