Pre-allocate diskspace to minimize fragmentation
|Reported by:||soepy||Owned by:|
|Keywords:||Cc:||soepy, Tim Kosse|
|Component version:||Operating system type:|
|Operating system version:|
This patch pre-allocates exactly the needed amount of
diskspace when getting a file. This will minimize
fragmentation, especially when transferring more than 1
file at once.
The Filezilla Server already contains code similar to
the code in this patch, so only the client is affected.
I've added SetLength64 to MFC64bitfix and call it after
opening the file. I truncate the filesize in
ResetOperation in case something went wrong.
Sorry, no diff.