fallocate also tests FALLOC_FL_KEEP_SIZE

main
Igor Canadi 10 years ago
parent b229f970df
commit 155bec4cf2
  1. 2
      build_tools/build_detect_platform

@ -184,7 +184,7 @@ else
#include <fcntl.h> #include <fcntl.h>
int main() { int main() {
int fd = open("/dev/null", 0); int fd = open("/dev/null", 0);
fallocate(fd, 0, 0, 1024); fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);
} }
EOF EOF
if [ "$?" = 0 ]; then if [ "$?" = 0 ]; then

Loading…
Cancel
Save