Is your feature request related to a problem? Please describe.
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
The block file pre-allocation takes too long as currently done by fallocate_posix on Linux (ext4).
Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->
There is a way to make it uncomparably faster. I am not yet sure if it is switching to another function for Linux, or just setting some options for the fallocate_posix.
Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
I know that file allocation in TransmissionBT torrent client is very fast on Linux. These commits I have identified from searching the logs as related, ordered from newest to oldest: transmission/transmission@a2d56b832, transmission/transmission@99d53d7ef, transmission/transmission@de2d0154e, transmission/transmission@4723b4a6e.
$ man 2 fallocate
https://www.man7.org/linux/man-pages/man2/fallocate.2.html
Additional context
<!-- Add any other context or screenshots about the feature request here. -->
Because I can not work more on it right now, I am dumping what I have found so far into this issue. Feel free to comment or even make a PR. Thank you!