flux-framework / dyad

DYAD: DYnamic and Asynchronous Data Streamliner
GNU Lesser General Public License v3.0
7 stars 5 forks source link

Support ownership transfer for RW modes #29

Open ilumsden opened 1 year ago

ilumsden commented 1 year ago

When opening a file in any read/write mode (e.g., r+, w+, and a+ for fopen), we should transfer ownership. This would involve the following steps:

  1. Transfer the file from producer to consumer, if needed
  2. Remove the KVS entry for the file
  3. Create a new KVS entry for the file with the owner being the consumer
  4. Open the file