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
[#issue 3127] Add xattr support for Solaris #3628
Conversation
The change itself looks fine. Please add a short changelog entry. Are you using Solaris and can test the PR? Or can someone else help with that? |
4c92c22
to
efb99b8
Compare
I've added the changelog. I do not have Solaris to test this. It would be great if somebody having solaris can test this. |
Same results as last time I tried this, the xattr internals does something nasty with file descriptors. This is on Solaris(tm). A short excerpt from a very long log filled with similar errors:
|
Thanks for testing. However, this means that this PR is stuck indefinitely until someone using Solaris can investigate what's going on. |
I'm new to go, but I suspect that the xattr implementation for Solaris is causing file descriptors to be closed twice. Any fd passed to
With these changes and some cleanup of the restic tests for Solaris quirks, all tests pass and I didn't see any signs of fd leaks examining the truss output. |
PR pkg/xattr#62 was accepted and is fixed. |
efb99b8
to
a87da12
Compare
Thanks! I've rebased the code |
@gum3ng Please update the xattr library to include the xattr fix: |
a87da12
to
7ced1a3
Compare
7ced1a3
to
dd30083
Compare
I've updated the xattr version. Please let me know if anymore changes are required. |
@gco Can you test whether xattr support works on Solaris when applying this PR? |
@MichaelEischer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for changes. @gco thank you for testing!
What does this PR change? What problem does it solve?
Fixes #3127
Added build tag for solaris and removed redundant functions in node_solaris.go. Also added example command in documentation.
Was the change previously discussed in an issue or on the forum?
Checklist
changelog/unreleased/
that describes the changes for our users (see template).gofmt
on the code in all commits.