• Ignat Korchagin's avatar
    Fix filesystem-disk-test to support platforms with non-4K filesystem block size · a01f80ea
    Ignat Korchagin authored
    Some memory-based filesystems, namely tmpfs, select their underlying block size
    equal to the configured page size of the platform/OS.
    
    On systems with page size not equal to 4K (for example, arm64 can be configured
    to have 16K or 64K page sizes -
    https://www.kernel.org/doc/Documentation/arm64/memory.txt) "DiskFile holes"
    test fails, when creating a file on a memory-based filesystem, because it
    "punches" a 4096 byte hole in the file (using fallocate) and expects the number
    of filesystem blocks used by the file to decrease. When the system page size is
    greater than 4K, 4096 byte hole is not enough to make the OS release the
    underlying blocks.
    
    Need to punch a whole, which is equal to the underlying filesystem block size at
    least.
    a01f80ea
Name
Last commit
Last update
c++ Loading commit data...
doc Loading commit data...
highlighting Loading commit data...
security-advisories Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
RELEASE-PROCESS.md Loading commit data...
appveyor-cygwin.sh Loading commit data...
appveyor.yml Loading commit data...
mega-test-kenton-home.cfg Loading commit data...
mega-test-kenton-work.cfg Loading commit data...
mega-test-quick.cfg Loading commit data...
mega-test.py Loading commit data...
release.sh Loading commit data...
style-guide.md Loading commit data...
super-test.sh Loading commit data...