mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 22:44:05 +00:00
fallocate also tests FALLOC_FL_KEEP_SIZE
This commit is contained in:
parent
b229f970df
commit
155bec4cf2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue