mergerfs/tests/TEST_use_fallocate_after_unlink
trapexit e310d24615
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run
Add support for FUSE passthrough
2025-06-05 23:47:42 -05:00

15 lines
209 B
Python
Executable file

#!/usr/bin/env python3
import os
import sys
import tempfile
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
os.posix_fallocate(fd,0,1024)
os.unlink(filepath)
os.posix_fallocate(fd,0,1024)
os.close(fd)