From 155bec4cf22d20c41ce4be93e3a0080b4ef7c7a2 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 15 Jan 2015 14:15:43 -0800 Subject: [PATCH] fallocate also tests FALLOC_FL_KEEP_SIZE --- build_tools/build_detect_platform | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index c17cd3ead8..5ad5552ce7 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -184,7 +184,7 @@ else #include int main() { int fd = open("/dev/null", 0); - fallocate(fd, 0, 0, 1024); + fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024); } EOF if [ "$?" = 0 ]; then