glibc/tests/Sanity/bz1476120-glibc-headers-don-t-include-linux-falloc-h-and/tst-falloc.c
Sergey Kolosov 823c0aee76 CI Tests: add fmf test plan
Resolves: RHEL-65327
2025-01-08 19:01:11 +00:00

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);
}