bitcoin/bitcoin — pull request #2229 by sipa (2013-01-27 23:10:07+00:00)
Title: Native versions for AllocateFileRange()

Implement native versions of AllocateFileRange() for:
* Linux: posix_fallocate()
* Mac OSX: fcntl(..., F_PREALLOCATE, ...)
* Windows: SetEndOfFile()

This should prevent the double-writing fallback that is used currently.