Closed MichaelEischer closed 1 year ago
I've replaced the implementation in the PR with the changes made for restic in https://github.com/restic/restic/pull/4021 . The fsync handling is now largely copy & paste from restic, which should make it easier to maintain this error handling mess.
For what it's worth, it works for me as I was having the errors.
What is the purpose of this change? What does it change?
Storing a repository on a filesystem that does not support fsync is currently not possible. This PR syncs the ignored fsync errors from the restic backend to also allow storing a repository on these filesystems. However, this is not recommended as without fsync it is not possible to guarantee the integrity of uploaded data.
In addition, macOS Ventura seems to have introduced an additional error code, see #198.
Was the change discussed in an issue or in the forum before?
Fixes #198.
Checklist
changelog/unreleased/
that describes the changes for our users (template here)gofmt
on the code in all commits