rclone/backend/union
Nick Craig-Wood 1e1af46a12 union: fix get free space for remotes which don't support it #6071
Before this fix GetFreeSpace returned math.MaxInt64 for remotes which
don't support reading free space, however this is used in various
comparison routines as a too large value, meaning that remotes of size
math.MaxInt64 were never being selected.

This fixes GetFreeSpace to return math.MaxInt64 - 1 so then can be selected.

It also fixes GetUsedSpace the same way however as the default for not
supported was 0 this was very unlikely to have ever caused a problem.
2022-06-16 22:13:50 +01:00
..
common union: enable passing of options to upstreams and policies #6071 2022-06-16 22:13:50 +01:00
policy backend: Fix union eplus policy returned nil 2021-11-08 11:55:27 +00:00
upstream union: fix get free space for remotes which don't support it #6071 2022-06-16 22:13:50 +01:00
entry.go union: fix deadlock when one part of a multi-upload fails 2022-03-09 11:30:55 +00:00
errors.go doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
union_internal_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
union_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
union.go union: enable passing of options to upstreams and policies #6071 2022-06-16 22:13:50 +01:00