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

Support for Extended Attributes (xattrs) #189

Open
mcandeia opened this issue Feb 19, 2025 · 0 comments
Open

Support for Extended Attributes (xattrs) #189

mcandeia opened this issue Feb 19, 2025 · 0 comments
Assignees

Comments

@mcandeia
Copy link
Contributor

Description

ZenFS is a powerful cross-platform filesystem emulator, and it would be beneficial to add support for extended attributes (xattrs). Many real-world applications rely on extended attributes for storing metadata, access control, and custom file properties.

Why is this needed?

  • xattrs allow storing metadata directly within the filesystem rather than in separate sidecar files.
  • Many modern applications (e.g., backup tools, file tagging systems) depend on xattrs for efficient data management.
  • It would improve compatibility with native filesystem behaviors, especially on Linux (getfattr/setfattr) and macOS (xattr).

Proposed Implementation

  • Implement getxattr(path, name) and setxattr(path, name, value) methods in the core API.
  • Ensure compatibility across multiple backends, with fallback behavior for unsupported ones.

References

@james-pre james-pre changed the title Feature Request: Support for Extended Attributes (xattrs) Support for Extended Attributes (xattrs) Feb 19, 2025
@james-pre james-pre self-assigned this Feb 19, 2025
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

No branches or pull requests

2 participants