As a result of http://www.sourceware.org/bugzilla/show_bug.cgi?id=7083 , glibc added support for the Linux fallocate() system call. However, the constants needed for the 'mode' argument argument are missing from header files. That is, bits/fcntl.h lacks the following definitions (from the Linux kernel source file include/uapi/linux/falloc.h): #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */
Fixed in 2.18.