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
1 changed files with 1 additions and 1 deletions

View File

@ -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