forked from TrueCloudLab/rclone
f29c6049fc
Before this change on Windows, files copied locally could become heavily fragmented (300+ fragments for maybe 100 MB), no matter how much contiguous free space there was (even if it's over 1TiB). This can needlessly yet severely adversely affect performance on hard disks. This changes uses NtSetInformationFile to pre-allocate the space to avoid this. It does nothing on other OSes other than Windows. |
||
---|---|---|
.. | ||
about_unix.go | ||
about_windows.go | ||
local.go | ||
local_internal_test.go | ||
local_test.go | ||
preallocate_other.go | ||
preallocate_windows.go | ||
read_device_other.go | ||
read_device_unix.go | ||
remove_other.go | ||
remove_test.go | ||
remove_windows.go | ||
tests_test.go |