rclone/backend/union
r-ricci 67fd60275a
union: fix panic due to misalignment of struct field in 32 bit architectures
`FS.cacheExpiry` is accessed through sync/atomic.
According to the documentation, "On ARM, 386, and 32-bit MIPS, it is
the caller's responsibility to arrange for 64-bit alignment of 64-bit
words accessed atomically. The first word in a variable or in an
allocated struct, array, or slice can be relied upon to be 64-bit
aligned."
Before commit 1d2fe0d856 this field was
aligned, but then a new field was added to the structure, causing the
test suite to panic on linux/386.
No other field is used with sync/atomic, so `cacheExpiry` can just be
placed at the beginning of the stuct to ensure it is always aligned.
2022-07-11 18:34:06 +01:00
..
common union: add min_free_space option for lfs/eplfs policies - fixes #6071 2022-06-16 22:13:50 +01:00
policy union: add min_free_space option for lfs/eplfs policies - fixes #6071 2022-06-16 22:13:50 +01:00
upstream union: fix panic due to misalignment of struct field in 32 bit architectures 2022-07-11 18:34:06 +01:00
entry.go union: support metadata 2022-06-29 17:30:37 +01:00
errors.go doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
union_internal_test.go fstest: remove spurious contents return from PutTestContents and friends 2022-06-29 11:18:02 +01:00
union_test.go backend: allow wrapping backend tests to run in make quicktest 2022-06-29 17:30:37 +01:00
union.go union: fix multiple files being uploaded when roots don't exist 2022-07-11 18:19:36 +01:00