Hello, I'd like to write a small simple fileserver, and I've been advised everywhere to look at ramfs.c.
I saw the src/cmd/ramfs.c, and I think I should be able to write mine simpler... For example, I'd like to take advantage of the File/Tree interface (createfile(), ...), having all the files of the fs in memory. I found also src/lib9p/ramfs.c, which looks pretty much as what I want, but this doesn't tollerate remounting well at all (I guess). I tried it with some modifications (to get it compiled) in plan9port over linux (./ramfs -D -s test) and two "9p ls test" in a row makes the server die. Where can I see an example of a working fileserver which uses File, Tree, and the related functions? Thank you, Lluís.