forked from rpms/glibc
8 lines
145 B
C
8 lines
145 B
C
|
#define _GNU_SOURCE
|
||
|
#include <fcntl.h>
|
||
|
int test(int fd)
|
||
|
{
|
||
|
return fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
|
||
|
0, 1024 * 1024);
|
||
|
}
|