Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Warn about compatibility issues with CIFS and restic #2669

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

MichaelEischer
Copy link
Member

What is the purpose of this change? What does it change?

Document an incompatibility between CIFS (SMB) on Linux and Go 1.14.

On Linux CIFS (SMB) seems to be incompatible with the async preemption
implementation of Go 1.14. CIFS seems not to restart syscalls (open,
read, chmod, readdir, ...) as expected by Go, which sets SA_RESTART for
its signal handler to have syscalls restarted automatically. This leads
to Go passing up lots of EINTR return codes to restic.

See #2659 for a detailed explanation.

The proper solution would be to additionally report a bug to the Linux kernel.

Was the change discussed in an issue or in the forum before?

See #2659 for a summary of the debugging session in the forum.

Checklist

  • I have read the Contribution Guidelines
  • I have enabled maintainer edits for this PR
  • [ ] I have added tests for all changes in this PR
  • I have added documentation for the changes (in the manual)
  • [ ] There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
  • [ ] I have run gofmt on the code in all commits
  • All commit messages are formatted in the same style as the other commits in the repo
  • I'm done, this Pull Request is ready for review

On Linux CIFS (SMB) seems to be incompatible with the async preemption
implementation of Go 1.14. CIFS seems not to restart syscalls (open,
read, chmod, readdir, ...) as expected by Go, which sets SA_RESTART for
its signal handler to have syscalls restarted automatically. This leads
to Go passing up lots of EINTR return codes to restic.

See restic#2659 for a detailed explanation.
@rawtaz rawtaz merged commit c03bc88 into restic:master Mar 26, 2020
@MichaelEischer MichaelEischer deleted the doc-cifs-linux-bug branch March 26, 2020 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants