9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] file server design documentation
@ 2012-12-21 18:23 steve
  2012-12-21 18:35 ` Nemo
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: steve @ 2012-12-21 18:23 UTC (permalink / raw)
  To: 9fans

hi,

I writing another non-disc file server after a gap of a few years
and am making mistakes.

is there a written spec of how its supposed to work?

For example:

the initial stat of a zero length name should return the Dir
of the root dir.

and a walk up to the root directory tells mount driver that
you want to pass control back to the parent filesystem.

-Steve




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

* Re: [9fans] file server design documentation
  2012-12-21 18:23 [9fans] file server design documentation steve
@ 2012-12-21 18:35 ` Nemo
  2012-12-21 18:44 ` Gorka Guardiola
  2012-12-22 10:35 ` Charles Forsyth
  2 siblings, 0 replies; 7+ messages in thread
From: Nemo @ 2012-12-21 18:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

IIRC, I think I wrote something about that in the 9.intro book.
But it's likely you already know all that's written there and you want
more details…


On Dec 21, 2012, at 7:23 PM, steve <steve@quintile.net> wrote:

> hi,
> 
> I writing another non-disc file server after a gap of a few years
> and am making mistakes.
> 
> is there a written spec of how its supposed to work?
> 
> For example:
> 
> the initial stat of a zero length name should return the Dir
> of the root dir.
> 
> and a walk up to the root directory tells mount driver that
> you want to pass control back to the parent filesystem.
> 
> -Steve
> 




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

* Re: [9fans] file server design documentation
  2012-12-21 18:23 [9fans] file server design documentation steve
  2012-12-21 18:35 ` Nemo
@ 2012-12-21 18:44 ` Gorka Guardiola
  2012-12-21 20:01   ` Skip Tavakkolian
  2012-12-22 10:35 ` Charles Forsyth
  2 siblings, 1 reply; 7+ messages in thread
From: Gorka Guardiola @ 2012-12-21 18:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I normally use a combination of running iostats and ramfs with debugging and reading again and again intro(5).

HTH. 

G.

On Dec 21, 2012, at 7:23 PM, steve <steve@quintile.net> wrote:

> hi,
> 
> I writing another non-disc file server after a gap of a few years
> and am making mistakes.
> 
> is there a written spec of how its supposed to work?
> 
> For example:
> 
> the initial stat of a zero length name should return the Dir
> of the root dir.
> 
> and a walk up to the root directory tells mount driver that
> you want to pass control back to the parent filesystem.
> 
> -Steve
> 
> 



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

* Re: [9fans] file server design documentation
  2012-12-21 18:44 ` Gorka Guardiola
@ 2012-12-21 20:01   ` Skip Tavakkolian
  0 siblings, 0 replies; 7+ messages in thread
From: Skip Tavakkolian @ 2012-12-21 20:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I like to 1+ this comment :)

On Fri, Dec 21, 2012 at 10:44 AM, Gorka Guardiola <paurea@gmail.com> wrote:
> I normally use a combination of running iostats and ramfs with debugging and reading again and again intro(5).
>
> HTH.
>
> G.
>
> On Dec 21, 2012, at 7:23 PM, steve <steve@quintile.net> wrote:
>
>> hi,
>>
>> I writing another non-disc file server after a gap of a few years
>> and am making mistakes.
>>
>> is there a written spec of how its supposed to work?
>>
>> For example:
>>
>> the initial stat of a zero length name should return the Dir
>> of the root dir.
>>
>> and a walk up to the root directory tells mount driver that
>> you want to pass control back to the parent filesystem.
>>
>> -Steve
>>
>>
>



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

* Re: [9fans] file server design documentation
  2012-12-21 18:23 [9fans] file server design documentation steve
  2012-12-21 18:35 ` Nemo
  2012-12-21 18:44 ` Gorka Guardiola
@ 2012-12-22 10:35 ` Charles Forsyth
  2012-12-22 15:59   ` erik quanstrom
  2 siblings, 1 reply; 7+ messages in thread
From: Charles Forsyth @ 2012-12-22 10:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I don't think either of those is a special rule, or undocumented.
Indeed, I can't think of any behaviour that isn't covered in section 5.

Following an attach, you're at the root, and a walk with no qids will
leave you there, so stat will just work,
although I don't know anything that relies on that.

Walk of ".." in the root of a file system leaves you there (see walk(5)).

On 21 December 2012 18:23, steve <steve@quintile.net> wrote:
> the initial stat of a zero length name should return the Dir
> of the root dir.
>
> and a walk up to the root directory tells mount driver that
> you want to pass control back to the parent filesystem.



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

* Re: [9fans] file server design documentation
  2012-12-22 10:35 ` Charles Forsyth
@ 2012-12-22 15:59   ` erik quanstrom
  2012-12-22 18:04     ` Charles Forsyth
  0 siblings, 1 reply; 7+ messages in thread
From: erik quanstrom @ 2012-12-22 15:59 UTC (permalink / raw)
  To: 9fans

> Following an attach, you're at the root, and a walk with no qids will
> leave you there, so stat will just work, although I don't know
> anything that relies on that.

cclone().

- erik



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

* Re: [9fans] file server design documentation
  2012-12-22 15:59   ` erik quanstrom
@ 2012-12-22 18:04     ` Charles Forsyth
  0 siblings, 0 replies; 7+ messages in thread
From: Charles Forsyth @ 2012-12-22 18:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Sorry, I was unclear, I meant stat("" ...)

On 22 December 2012 15:59, erik quanstrom <quanstro@quanstro.net> wrote:
> , although I don't know
>> anything that relies on that.



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

end of thread, other threads:[~2012-12-22 18:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-21 18:23 [9fans] file server design documentation steve
2012-12-21 18:35 ` Nemo
2012-12-21 18:44 ` Gorka Guardiola
2012-12-21 20:01   ` Skip Tavakkolian
2012-12-22 10:35 ` Charles Forsyth
2012-12-22 15:59   ` erik quanstrom
2012-12-22 18:04     ` Charles Forsyth

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