Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fixed #9908 - fix noapplexattr to work with FSKit backend - #9909

Open
Eugeny wants to merge 1 commit into
rclone:masterfrom
Eugeny:9908-fskit-xattrs
Open

fixed #9908 - fix noapplexattr to work with FSKit backend#9909
Eugeny wants to merge 1 commit into
rclone:masterfrom
Eugeny:9908-fskit-xattrs

Conversation

@Eugeny

@Eugeny Eugeny commented Sep 12, 2026

Copy link
Copy Markdown

What does this change do?

See #9908 - this PR makes rclone match the old macFUSE behaviour where xattr syscalls were silently swallowed instead of returning ENOSYS. This fixes Finder being unable to copy anything onto the mount

I've tried returning ENOTSUP but that still causes FInder to fail

Linked issue

Fixes #9908

For new or changed backends

Checklist

  • This change is trivial OR it has been discussed and agreed in the linked issue.
  • I have read the contribution guidelines.
  • (If I used AI tools to help write this code) I have read and understood the AI-assisted contributions guidance, and I have tested and take ownership of this change myself.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • (Backend changes only) test_all passes for this backend and if submitting a new backend can provide a test account for the integration tester - see CONTRIBUTING.md.
  • This Pull Request is ready for review.

@Eugeny
Eugeny requested a review from ncw as a code owner September 12, 2026 08:52

@ncw ncw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the backwards compatibly of this change, but we can make it macOS only easily enough. Maybe this should be fskit only with a new flag or opt I'm not sure. What do you think?

Comment thread cmd/cmount/fs.go Outdated
func (fsys *FS) Setxattr(path string, name string, value []byte, flags int) (errc int) {
defer log.Trace(path, "name=%q, value=%q, flags=%d", name, value, flags)("errc=%d", &errc)
// #9908: simulate macFUSE behaviour (discard setxattr calls) - otherwise Finder cannot copy files onto the mount
if fsys.opt.NoAppleXattr && strings.HasPrefix(name, "com.apple.") {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these should have if runtime.GOOS == "Darwin" && at the start otherwise we'll change the behaviour for Windows and Linux.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated so that the behaviour only changes on darwin + --noapplexattr + backend=fskit - this should a safe change given how it was basically not working at all with backend=fskit previously

@Eugeny
Eugeny requested a review from ncw September 12, 2026 22:07
@Eugeny

Eugeny commented Sep 12, 2026

Copy link
Copy Markdown
Author

(sorry, I do not know if you get PR thread notifications without a re-review request)

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.

MacFUSE + FSKit + mount - Finder cannot copy files

2 participants