Closed blazk closed 6 years ago
Hi @blazk - yes I did not expect it to be as complicated either! - Thanks for this PR - looks good. I will merge it now. Does look like we would need to make some changes to the overall architecture for more flexible variable editing. (given the range of potential tools people could edit the files with...)
Thanks @dvalters
So in terms of architecture, currently it is stateless meaning an entire operation (e.g. creating a variable, changing variable data array) must be done within a single FUSE call.
This doesn't always work:
we need some way of storing the state between FUSE calls (to store partial text edits before release() is called)
we need to delay creating a variable until we know all the bits (e.g. you cannot create a variable when you create a directory because you don't know what should be dimensions of this new variable; you need to wait until user creates DIMENSIONS file)
So I think we need e.g. a Variable class to store a state between FUSE calls
@dvalters writing to variables is more complex than it seemed to me at first!