Design API for reading, writing and enumerating extended attributes.
Potential API choices:
- Handle EA operations via the original file/directory handle.
- Pros:
- API simplicity.
- Parallel with POSIX fgetxattr.
- Cons:
- Requires to re-open EA handle on windows for every call.
- Open a separate EA handle (and cache EA metadata) that can operate as a view.
- Pros:
- API flexibility (such as ranges support).
- Separation of concerns.
- Cons:
- API complexity.
Design API for reading, writing and enumerating extended attributes.
Potential API choices: