9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] clarification on man 9p
@ 2009-10-02 20:29 Fernan Bolando
  2009-10-03  0:29 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Fernan Bolando @ 2009-10-02 20:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi

in man 9p

"In general, the File interface is appropriate for maintaining
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 structured (as in cdfs and nntpfs) or is
maintained elsewhere."

Is this referring to avoiding the usage of createfile and friends in
9pfile.h for highly structured trees?

regards
fernan


--
http://www.fernski.com



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

* Re: [9fans] clarification on man 9p
  2009-10-02 20:29 [9fans] clarification on man 9p Fernan Bolando
@ 2009-10-03  0:29 ` Russ Cox
  2009-10-03  9:26   ` Fernan Bolando
  0 siblings, 1 reply; 4+ messages in thread
From: Russ Cox @ 2009-10-03  0:29 UTC (permalink / raw)
  To: fernanbolando, Fans of the OS Plan 9 from Bell Labs

> "In general, the File interface is appropriate for maintaining
> 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 structured (as in cdfs and nntpfs) or is
> maintained elsewhere."
>
> Is this referring to avoiding the usage of createfile and friends in
> 9pfile.h for highly structured trees?

Yes.  You can look at the named examples to see
the alternative.  My experience has been, well, what
it says in the man page: the File interface was an
interesting idea but is rarely useful.

Russ


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

* Re: [9fans] clarification on man 9p
  2009-10-03  0:29 ` Russ Cox
@ 2009-10-03  9:26   ` Fernan Bolando
  2009-10-03 11:34     ` Gorka Guardiola
  0 siblings, 1 reply; 4+ messages in thread
From: Fernan Bolando @ 2009-10-03  9:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Sat, Oct 3, 2009 at 8:29 AM, Russ Cox <rsc@swtch.com> wrote:
>> "In general, the File interface is appropriate for maintaining
>> 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 structured (as in cdfs and nntpfs) or is
>> maintained elsewhere."
>>
>> Is this referring to avoiding the usage of createfile and friends in
>> 9pfile.h for highly structured trees?
>
> Yes.  You can look at the named examples to see
> the alternative.  My experience has been, well, what
> it says in the man page: the File interface was an
> interesting idea but is rarely useful.
>

I understand, what confused me was that ramfs is not using File/createfile.
So even though ramfs could have taken advantage of the createfile
tools it didn't. why?

The only fileserver that I found that was actually using createfile is rdbfs.

regards
fernan


-- 
http://www.fernski.com



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

* Re: [9fans] clarification on man 9p
  2009-10-03  9:26   ` Fernan Bolando
@ 2009-10-03 11:34     ` Gorka Guardiola
  0 siblings, 0 replies; 4+ messages in thread
From: Gorka Guardiola @ 2009-10-03 11:34 UTC (permalink / raw)
  To: fernanbolando, Fans of the OS Plan 9 from Bell Labs

There is a version that is. Its source is with the library.

-
Curiosity sKilled the cat

G.

On Oct 3, 2009, at 11:26 AM, Fernan Bolando <fernanbolando@mailc.net>
wrote:

> On Sat, Oct 3, 2009 at 8:29 AM, Russ Cox <rsc@swtch.com> wrote:
>>> "In general, the File interface is appropriate for maintaining
>>> 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 structured (as in cdfs and nntpfs) or is
>>> maintained elsewhere."
>>>
>>> Is this referring to avoiding the usage of createfile and friends in
>>> 9pfile.h for highly structured trees?
>>
>> Yes.  You can look at the named examples to see
>> the alternative.  My experience has been, well, what
>> it says in the man page: the File interface was an
>> interesting idea but is rarely useful.
>>
>
> I understand, what confused me was that ramfs is not using File/
> createfile.
> So even though ramfs could have taken advantage of the createfile
> tools it didn't. why?
>
> The only fileserver that I found that was actually using createfile
> is rdbfs.
>
> regards
> fernan
>
>
> --
> http://www.fernski.com
>



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

end of thread, other threads:[~2009-10-03 11:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-02 20:29 [9fans] clarification on man 9p Fernan Bolando
2009-10-03  0:29 ` Russ Cox
2009-10-03  9:26   ` Fernan Bolando
2009-10-03 11:34     ` Gorka Guardiola

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