Skip to content

Conversation

@jkowalski
Copy link
Contributor

This provides huge speed improvements in macOS when accessing gocryptfs mounts backed by SMB/NFS, in particular over slow links:

Tested using directory with 333 files, shared over SMB from Ubuntu 24.04 server, accessed over high-latency link (5ms ping):

  1. Mount smb://myserver/MyVolume
  2. gocryptfs /Volumes/MyVolume mymountpoint
  3. time ls -l mymountpoint repeated 3 times.

Without -noxattr: 65.35s, 89.23s, 68.93s
With -noxattr: 7.693s, 0.470s, 0.220s

Browsing latency in Finder is dramatically faster - going from "unusable" to "totally fine".

@rfjakob
Copy link
Owner

rfjakob commented Jan 12, 2026

Looks good beside the compile error

rn := n.rootNode()
// If -noxattr is enabled, return ENOATTR for all getxattr calls
if rn.args.NoXattr {
return 0, syscall.ENOATTR
Copy link
Owner

Choose a reason for hiding this comment

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

ci failure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed the issue, turned out that on Linux "no such attribute" is ENODATA while on Darwin it's ENOATTR

@jkowalski jkowalski requested a review from rfjakob January 18, 2026 02:47
@rfjakob rfjakob merged commit 6013d56 into rfjakob:master Jan 18, 2026
5 checks passed
@rfjakob
Copy link
Owner

rfjakob commented Jan 18, 2026

Merged, thanks!

@rfjakob
Copy link
Owner

rfjakob commented Jan 22, 2026

Bonus points by adding this to MANPAGE.md

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.

2 participants