9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] using Tree* and File* vs imlementing own 9p-handling routines?
@ 2004-01-08 19:50 mirtchov
  2004-01-09  0:37 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: mirtchov @ 2004-01-08 19:50 UTC (permalink / raw)
  To: 9fans

I'd like to have a comment from the 9p(2) man page clarified:

          In general, the File interface is appropriate for maintain-
          ing arbitrary file trees (as in ramfs). The File interface
          is best avoided when the tree structure is easily generated
          as necessary; this is true when the tree is highly struc-
          tured (as in cdfs and nntpfs) or is maintained elsewhere.

Is there a penalty associated with using the File interface?  It seems
to simplify greatly the implementation of 9p servers, so why should it
be avoided?

Say I have a server with static files that never change, should I use
File or roll my own Qid-handling routines a-la mntgen and friends?

thanks: andrey



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

end of thread, other threads:[~2004-01-09  0:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-08 19:50 [9fans] using Tree* and File* vs imlementing own 9p-handling routines? mirtchov
2004-01-09  0:37 ` Russ Cox

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).