Re: [9fans] file server design documentation

2012-12-22 Thread Charles Forsyth
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 st...@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.



Re: [9fans] file server design documentation

2012-12-22 Thread erik quanstrom
 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



Re: [9fans] file server design documentation

2012-12-22 Thread Charles Forsyth
Sorry, I was unclear, I meant stat( ...)

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



[9fans] file server design documentation

2012-12-21 Thread steve
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




Re: [9fans] file server design documentation

2012-12-21 Thread Gorka Guardiola
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 st...@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
 
 



Re: [9fans] file server design documentation

2012-12-21 Thread Nemo
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 st...@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
 




Re: [9fans] file server design documentation

2012-12-21 Thread Skip Tavakkolian
I like to 1+ this comment :)

On Fri, Dec 21, 2012 at 10:44 AM, Gorka Guardiola pau...@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 st...@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