fallocate also tests FALLOC_FL_KEEP_SIZE

This commit is contained in:
Igor Canadi 2015-01-15 14:15:43 -08:00
parent b229f970df
commit 155bec4cf2

View file

@ -184,7 +184,7 @@ else
#include <fcntl.h>
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