Abhishek Kona 1ba5abca97 Use posix_fallocate as default.
Summary:
Ftruncate does not throw an error on disk-full. This causes Sig-bus in
the case where the database tries to issue a Put call on a full-disk.

Use posix_fallocate for allocation instead of truncate.
Add a check to use MMaped files only on ext4, xfs and tempfs, as
posix_fallocate is very slow on ext3 and older.

Test Plan: make all check

Reviewers: dhruba, chip

Reviewed By: dhruba

CC: adsharma, leveldb

Differential Revision: https://reviews.facebook.net/D9291
2013-03-13 13:50:26 -07:00
..
2013-02-28 18:04:58 -08:00
2011-10-31 17:22:06 +00:00
2012-11-28 17:18:41 -08:00
2013-02-28 18:04:58 -08:00
2013-02-28 18:04:58 -08:00
2013-02-28 18:04:58 -08:00
2013-02-28 18:04:58 -08:00
2013-02-28 18:04:58 -08:00
2012-08-28 11:43:33 -07:00
2013-02-28 18:04:58 -08:00
2011-10-31 17:22:06 +00:00
2013-02-28 18:04:58 -08:00
2013-03-13 13:50:26 -07:00
2013-02-28 18:04:58 -08:00
2012-04-17 08:36:46 -07:00
2011-10-31 17:22:06 +00:00
2011-10-31 17:22:06 +00:00
2013-02-28 18:04:58 -08:00
2011-10-31 17:22:06 +00:00
2013-02-28 18:04:58 -08:00
2013-02-28 18:04:58 -08:00
2011-10-31 17:22:06 +00:00