switch-blade-stuff / rod

C++20 coroutine & async IO library
MIT License
1 stars 0 forks source link

Extended attributes #2

Open switch-blade-stuff opened 1 year ago

switch-blade-stuff commented 1 year ago

Design API for reading, writing and enumerating extended attributes. Potential API choices:

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