axiom
axiom copied to clipboard
Add support built-in stream file system entries
Currently, the mkstream command creates a json file with the stream source and type. The mount.stream command then reads the json file and creates a custom stream implementation according to the type field.
New proposed implementation:
- Create a new built-in
named streamentry type in jsfs. mkstreamcreates entries of this new typemount.streammerely opens thenamed streamentry, pass it to a newStubFileSysteminstance and mounts that instance to a file system in the file system manager.
Note we have to define the behavior of these new named stream entries
- Only supported in jsfs
- Show a special entries in
ls - Reading from a stream (e.g.
cat) would provide the data from the stream peer - Writing to the stream would send data to the peer
- Anything else?