Skip to content

Fix unusable mount on macOS Sonoma#5048

Merged
MichaelEischer merged 5 commits intorestic:masterfrom
MichaelEischer:fix-macos-fuse
Oct 23, 2024
Merged

Fix unusable mount on macOS Sonoma#5048
MichaelEischer merged 5 commits intorestic:masterfrom
MichaelEischer:fix-macos-fuse

Conversation

@MichaelEischer
Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer commented Sep 11, 2024

What does this PR change? What problem does it solve?

Files in mounted repositories were inaccessible on macOS Sonoma when using fuse-t.

The underlying problem is that macOS apparently looks up files twice, which caused the fuse implementation to return two difference instance of the same file. This gets translated to different file handles by fuse-t and as a result confuses macOS.

See macos-fuse-t/fuse-t#61 (comment) for further detail.

Was the change previously discussed in an issue or on the forum?

Fixes #4971

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • 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.

A particular node should always be represented by a single instance.
This is necessary to allow the fuse library to assign a stable nodeId to
a node. macOS Sonoma trips over the previous, unstable behavior when
using fuse-t.
Forget fs.Node instances once the kernel frees the corresponding nodeId.
This ensures that restic does not run out of memory on large snapshots.
Copy link
Copy Markdown
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

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

LGTM

@MichaelEischer MichaelEischer merged commit e320edd into restic:master Oct 23, 2024
@MichaelEischer MichaelEischer deleted the fix-macos-fuse branch October 23, 2024 20:51
@MichaelEischer MichaelEischer mentioned this pull request Nov 3, 2024
5 tasks
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.

Can't Restore Using Mount and FUSE-T on macOS 14.5 or 14.6.

1 participant