rocksdb/build_tools
Andrew Kryczka 186b3afaa8 Use fallocate even if hole-punching unsupported (#5023)
Summary:
The compiler flag `-DROCKSDB_FALLOCATE_PRESENT` was only set when
`fallocate`, `FALLOC_FL_KEEP_SIZE`, and `FALLOC_FL_PUNCH_HOLE` were all
present. However, the last of the three is not really necessary for the
primary `fallocate` use case; furthermore, it was introduced only in later
Linux kernel versions (2.6.38+).

This PR changes the flag `-DROCKSDB_FALLOCATE_PRESENT` to only require
`fallocate` and `FALLOC_FL_KEEP_SIZE` to be present. There is a separate
check for `FALLOC_FL_PUNCH_HOLE` only in the place where it is used.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5023

Differential Revision: D14248487

Pulled By: siying

fbshipit-source-id: a10ed0b902fa755988e957bd2dcec9081ec0502e
2019-03-04 15:43:17 -08:00
..
amalgamate.py New amalgamation target 2015-10-01 08:29:31 +13:00
build_detect_platform Use fallocate even if hole-punching unsupported (#5023) 2019-03-04 15:43:17 -08:00
cont_integration.sh Suppress lint in old files 2018-01-29 12:56:42 -08:00
dependencies_4.8.1.sh Suppress lint in old files 2018-01-29 12:56:42 -08:00
dependencies_platform007.sh Add latest toolchain (gcc-8, etc.) build support for fbcode users (#4923) 2019-01-28 11:26:32 -08:00
dependencies.sh Release 5.16 (#4298) 2018-08-21 14:43:08 -07:00
dockerbuild.sh Fix /bin/bash shebangs 2017-08-03 15:56:46 -07:00
error_filter.py Separate crash test with atomic flush (#4945) 2019-02-19 14:08:39 -08:00
fb_compile_mongo.sh set -e in fb_compile_mongo.sh 2015-06-29 11:43:25 -07:00
fbcode_config4.8.1.sh revert fbcode build behavior 2017-12-07 16:12:52 -08:00
fbcode_config_platform007.sh Add latest toolchain (gcc-8, etc.) build support for fbcode users (#4923) 2019-01-28 11:26:32 -08:00
fbcode_config.sh Cache dictionary used for decompressing data blocks (#4881) 2019-01-23 18:15:47 -08:00
format-diff.sh Fix /bin/bash shebangs 2017-08-03 15:56:46 -07:00
gnu_parallel Fix typos in comments (#4456) 2018-10-04 20:46:50 -07:00
make_package.sh Suppress lint in old files 2018-01-29 12:56:42 -08:00
precommit_checker.py Use gcc-4.9-glibc-2.20-fb python in precommit_checker 2017-02-03 13:39:18 -08:00
regression_build_test.sh Fix /bin/bash shebangs 2017-08-03 15:56:46 -07:00
rocksdb-lego-determinator Separate crash test with atomic flush (#4945) 2019-02-19 14:08:39 -08:00
RocksDBCommonHelper.php Fix spelling errors (#4827) 2019-01-02 11:17:57 -08:00
run_ci_db_test.ps1 Windows cumulative patch 2018-03-06 11:57:43 -08:00
setup_centos7.sh Adding CentOS 7 Vagrantfile & build script 2018-02-26 15:27:17 -08:00
update_dependencies.sh Add latest toolchain (gcc-8, etc.) build support for fbcode users (#4923) 2019-01-28 11:26:32 -08:00
version.sh Some small improvements to the build_tools 2018-04-02 23:57:41 -07:00