9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] QIDs
@ 2008-01-09 14:30 Steve Simon
  2008-01-09 14:52 ` Charles Forsyth
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Simon @ 2008-01-09 14:30 UTC (permalink / raw)
  To: 9fans

beginners question:

Internally in the kernel it matches full QIDs dosn't it?

That is it doesn't compare only the qid.path, so in my
syntetic file server I can differentiate between files
by using a unique-to-me qid.type and then using qid.path
to hold the index of my files in a table?

Seccondly, if I am going to use other bits from qid.type
is there any reccomded practice as to which ones to use
(I assume the lower ones as the upper ones are defined),
however I do rembember somthing about an agregating server
shifting the bits of clients down so they can be combined
uniquely....

Thanks,

-Steve


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [9fans] qids
@ 2003-03-26 17:42 rog
  0 siblings, 0 replies; 6+ messages in thread
From: rog @ 2003-03-26 17:42 UTC (permalink / raw)
  To: 9fans

> Servers of original files are encouraged to use only the low 48 bits
> of the qid.path to permit encapsulating servers to use the top 16 bits
> to generate uniqueness.

what about those that encapsulate the encapsulators?

i don't see how this helps much, given that you can't rely
on it. i suppose it reduces the likelyhood that an exportfs-like
service will have to rewrite a file's qid when it's walked to,
and more so if the encapsulating service chooses a random
starting point for those top 16 bits... is that the point?

  rog.



^ permalink raw reply	[flat|nested] 6+ messages in thread
* [9fans] qids
@ 2003-03-26 16:24 vic
  2003-03-26 16:29 ` rob pike, esq.
  0 siblings, 1 reply; 6+ messages in thread
From: vic @ 2003-03-26 16:24 UTC (permalink / raw)
  To: 9fans

I am writing a file server to be overlayed on a portion
of an existing name space.  It presents the original
name space, plus some new files.

I'm trying to decide how to manage the qids.  The issue
is choosing qids for the new files without colliding
with qids of the old ones.

The best related example I've seen is the qid hash
table in exportfs.  Is there a better one?

Vic



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

end of thread, other threads:[~2008-01-09 14:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09 14:30 [9fans] QIDs Steve Simon
2008-01-09 14:52 ` Charles Forsyth
  -- strict thread matches above, loose matches on Subject: below --
2003-03-26 17:42 [9fans] qids rog
2003-03-26 16:24 vic
2003-03-26 16:29 ` rob pike, esq.
2003-03-26 17:29   ` Axel Belinfante

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