9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Two ramfs?
@ 2008-02-04 16:02 Lluís Batlle
  2008-02-04 20:34 ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: Lluís Batlle @ 2008-02-04 16:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-07  8:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04 16:02 [9fans] Two ramfs? Lluís Batlle
2008-02-04 20:34 ` Russ Cox
2008-02-04 21:38   ` Lluís Batlle
2008-02-06 22:22   ` Lluís Batlle
2008-02-07  1:43     ` sqweek
2008-02-07  8:41       ` Lluís Batlle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).