-
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