On Tue, 2004-10-19 at 12:24, Federico Sacerdoti wrote:
> On Oct 19, 2004, at 12:07 PM, Matt Massie wrote:
> 
> > /Country=China/group=/
> >
> > i should get a list of all metric groups attached to China... but those
> > groups are siblings of "group=" and not children.  for example,
> >
> > /Country=China/group=cpu/
> > /Country=China/group=load/
> > /Country=China/group=memory/
> > /Country=China/group=disk/
> >
> > are all siblings.. not children.
> 
> I still dont see the problem. I would expect the operation "find all 
> siblings" of a node would be a primitive in the system. This is not 
> hard in a tree structure.

i could write in special case in the in-memory filesystem that says if
the name of the directory ends in '=' then list all siblings that start
with the same string preceding the '=' (e.g. group).  that is true.  how
in the world would you implement that in a UNIX filesystem though.  it's
not possible.  i don't want the in-memory filesystem to act any
differently than a traditional unix filesystem.

if we put the directories "group=cpu", "group=memory", "group=disk"
inside of the "group=" directory, then we are in agreement (sort of). 
you are just asking to put the delimiter last (in this case '=').

would your layout have

/Country=China/group=/
                  +------ ./group=cpu/
                  | 
                  +------ ./group=disk/

?

it's understood that things in the "group=" or ".group" directory are
all just groups so you only need...

/Country=/China/group=/cpu

in this end this might look better.

/country=/China/province=/Hunan/group=/cpu/metric=/number

however, we still need to be able to delimit outer from innner space

/country=/China/province=/Hunan/.group/cpu/.metric/number

-matt


-- 
PGP fingerprint 'A7C2 3C2F 8445 AD3C 135E F40B 242A 5984 ACBC 91D3'

   They that can give up essential liberty to obtain a little 
      temporary safety deserve neither liberty nor safety. 
  --Benjamin Franklin, Historical Review of Pennsylvania, 1759

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to