2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00
restic/internal
Alexander Neumann 6c514adb8a ui/progress: Use mutex instead of atomic
The counter value needs to be aligned to 64 bit in memory for the
atomic functions to work on some platform (such as 32 bit ARM).

The atomic package says in its documentation:

> These functions require great care to be used correctly. Except for
> special, low-level applications, synchronization is better done with
> channels or the facilities of the sync package.

This commit replaces the atomic functions with a simple sync.Mutex, so
we don't have to care about alignment.
2020-12-22 21:03:27 +01:00
..
archiver Use BlobHandle in index methods 2020-11-22 20:41:12 +01:00
backend Make invalid handles permanent errors 2020-12-17 12:47:53 +01:00
cache Less repetitive error messages in internal/cache 2020-10-05 20:28:54 +02:00
checker Parallelize ForAllSnapshots 2020-12-06 05:09:58 +01:00
crypto crypto: Remove unused error 2020-09-05 10:07:16 +02:00
debug Allow debug logging to pipes and terminals 2020-10-19 22:30:30 +02:00
dump Deduplicate dumper closing logic 2020-12-19 02:42:46 +03:00
errors Don't retry when "no space left on device" in local backend 2020-12-17 12:43:09 +01:00
filter filter: Fix glob matching on absolute path marker on windows 2020-10-09 16:11:05 +02:00
fs vss: fix DeleteSnapshots() and GetSnapshotProperties() on 386 2020-11-12 19:31:00 +01:00
fuse fuse: Properly set uid/gid for directories 2020-11-30 23:41:49 +01:00
hashing Micro-optimization for hashing.Writer/PackerManager 2020-03-05 22:30:04 +01:00
limiter rclone: Respect bandwith limits 2018-05-22 20:48:17 +02:00
migrations Fix issues reported by semgrep 2020-12-11 09:41:59 +01:00
mock mock: Remove unused repository type 2019-04-13 13:38:39 +02:00
options Add support for boolean extended options 2020-11-11 11:54:27 +01:00
pack Make BlobHandle substruct of Blob 2020-11-22 20:41:10 +01:00
repository Fix issues reported by semgrep 2020-12-11 09:41:59 +01:00
restic Don't retry when "no space left on device" in local backend 2020-12-17 12:43:09 +01:00
restorer Fix issues reported by semgrep 2020-12-11 09:41:59 +01:00
selfupdate self-update: Don't cancel download after 30 seconds 2019-02-23 11:15:18 +01:00
test helpers: Improve error message 2020-11-12 20:38:31 +01:00
textfile Remove io.Writer from fs.File 2020-09-21 14:21:32 +02:00
ui ui/progress: Use mutex instead of atomic 2020-12-22 21:03:27 +01:00
walker Remove a few redundant type specifiers 2020-10-06 14:55:13 +02:00