"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
lib/file: fix SetSparse on Windows 7 which fixes downloads of files > 250MB
Nick Craig-Woodc4110780bf64
diff --git a/lib/file/preallocate_windows.go b/lib/file/preallocate_windows.goindex f238c5c73..f92f9f7f7 100644--- a/lib/file/preallocate_windows.go+++ b/lib/file/preallocate_windows.go@@ -92,7 +92,8 @@ const SetSparseImplemented = true// SetSparse makes the file be a sparse filefunc SetSparse(out *os.File) error {- err := syscall.DeviceIoControl(syscall.Handle(out.Fd()), FSCTL_SET_SPARSE, nil, 0, nil, 0, nil, nil)+ var bytesReturned uint32+ err := syscall.DeviceIoControl(syscall.Handle(out.Fd()), FSCTL_SET_SPARSE, nil, 0, nil, 0, &bytesReturned, nil)if err != nil {return errors.Wrap(err, "DeviceIoControl FSCTL_SET_SPARSE")}