As the title says... Chat on...

User avatar
By joe
#9206 I'm beginning to implement a virtual file system like the 'file' module except all the files will be read and written to a unix server. The idea is to have a private filesystem (only for this node) and shared one that all the nodes can access. Before I invest any more time, I'm curious if maybe it's already been done?
User avatar
By joe
#9978 Well, I have this kind of working.

So, for example the lua instruction file.open("sfs://192.168.1.1:2323/filename") will build a connection to the host and then you can read, seek, etc, on the file on a remote server (in this case the server described by ip=192.168.1.1 and port 2323) as if it is a local file.

There are two protocols, sfs (as above) and pfs. The sfs protocol shares the name space and file contents to every esp lua node, while the pfs is a private (yet still remote) file system for just this node.

I didn't get any feedback so it doesn't appear to be of much general interest, but I'd cleanup the code and push it to github if people are interested. You would also need to have a server to handle the rpcs (I've written a simple one in ruby) .