Is it possible to completely disable sparse file support in an ext4 file system?
The purpose is to avoid disk fragmentation.
Bonus "no-points" if the solution allows the file system to allocate the files quickly, without filling the file with zeroes (or whatever).
What I want is to be able to tell applications to create files of X bytes and, no matter what method they use to pre-allocate the files, a file of X bytes will be created on the disk. I have no use for an "apparent size" of X bytes, nor I have control over those applications' source codes.
In order to save you some time, let me already address some comments that always seem to appear whenever someone mentions sparse files and quick allocations
- I don't care how good a file system allocation heuristic is supposed to be.
- I am aware of the security implications of not zeroing newly allocated blocks.