[erlang-questions] servers for mountable remote file systems
Fri Oct 14 10:42:10 CEST 2011
On Fri, Oct 14, 2011 at 9:30 AM, Joe Armstrong <erlang@REDACTED> wrote:
> I want to make a remote virtual device that I can mount on mac-os X/linux
> It seems like there are three alternatives
> a) webdav
> b) samba/smb
> c) NFS
> I need an Erlang server that implements a virtual file system as a
> back-end to the protocol
> in question.
> I can imagine emulating a large number of small files - the mounted
> file system would appear to have a
> large number of small files - but in fact these would not exist but be
> emulated in the server.
> Has anybody implemented servers for the above protocols in Erlang? or
> do I have to start from
> scratch? Is any of these protocols to be preferred over the others,
> given that I want to emulate
> a large number of small files. Is my list a) - c) complete are there
> other protocols I should consider?
If it's OK to also supply some kind of client to your users, then I'd
recommend targetting 9P (http://en.wikipedia.org/wiki/9P) as it is at least
one order of magnitude simpler than NFS or samba (not sure about webdav).
There's a Linux implementation for it here:
And the original documentation is here:
The canonical example of a 9P server is ramfs.
In C: http://swtch.com/plan9port/man/man4/ramfs.html
In Go: http://code.google.com/p/go9p/source/browse/p/srv/examples/ramfs.go
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions