9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] About 9P ...
@ 2007-06-19 20:11 Philippe Anel
  2007-06-20  0:37 ` Russ Cox
  2007-06-22  0:32 ` Derek Fawcus
  0 siblings, 2 replies; 52+ messages in thread
From: Philippe Anel @ 2007-06-19 20:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


Hello 9fans,

Regarding 9P design, I wonder why Fids are chosen by the client :
I tried to find an answer in the docs, manuals or in 9fans archive
but I have not found an answer (please tell me where I can find
an answer if I missed something).
Can someone explain me the reason why the Fids are not returned
by the server (along with the Qids by example) ?
Because Fids are chosen by the client, the server must search in
a table (hash table in lib9p) the associated file structure, Whereas
if Fids are chosen by the server, a simple array is enough. I don't
know however, if the performance improvement is really important.
In fact I'm quite sure it is not.
I also think this is not because of a security issue even if there
may be multiple clients sharing the same connection. Indeed, because
the transactions are only between the server and the kernel or an
remote (tcp/il) connection, it seems a process cannot steal the fid
of another process (or another namespace). Regarding the transactions
with the kernel, a process has no access to fids. And regarding
the transaction with a remote connection, the connection point can
be used as a kind of fid space.
Maybe I'm wrong about the security issue, I only want to know why
9P has been designed with such policy.

Thank you,
Phil;



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

end of thread, other threads:[~2007-06-25 18:46 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-19 20:11 [9fans] About 9P Philippe Anel
2007-06-20  0:37 ` Russ Cox
2007-06-20  2:06   ` Roman Shaposhnick
2007-06-20 11:29     ` Anthony Sorace
2007-06-22  0:32 ` Derek Fawcus
2007-06-22  6:58   ` Philippe Anel
2007-06-22 15:57     ` Derek Fawcus
2007-06-22 20:32       ` Philippe Anel
2007-06-22 21:10         ` David Leimbach
2007-06-22 21:35           ` Philippe Anel
2007-06-22 21:46             ` David Leimbach
2007-06-22 21:55               ` Philippe Anel
2007-06-22 22:25                 ` Philippe Anel
2007-06-22 22:57                   ` David Leimbach
2007-06-22 23:01                     ` Anant Narayanan
2007-06-23  4:30                   ` Russ Cox
2007-06-23  5:10                     ` Skip Tavakkolian
2007-06-23  9:25                       ` Francisco J Ballesteros
2007-06-23 15:50                         ` Martin Atkins
2007-06-23  6:24                     ` Philippe Anel
2007-06-23 15:00                     ` Rob Pike
2007-06-24  0:52                     ` [9fans] 9P optimization Lyndon Nerenberg
2007-06-24  3:04                       ` Francisco J Ballesteros
2007-06-24  3:15                         ` Lyndon Nerenberg
2007-06-24  4:08                           ` ron minnich
2007-06-24  9:34                             ` Steve Simon
2007-06-24 10:06                               ` Lyndon Nerenberg
2007-06-24 11:38                                 ` Steve Simon
2007-06-24 13:34                                   ` Lyndon Nerenberg
2007-06-25  0:34                                     ` ron minnich
2007-06-25 17:53                                       ` Lyndon Nerenberg
2007-06-25  1:02                                 ` Dave Eckhardt
2007-06-24 12:14                             ` erik quanstrom
2007-06-24 13:36                               ` Lyndon Nerenberg
2007-06-24 21:47                                 ` erik quanstrom
2007-06-25 17:48                                   ` Lyndon Nerenberg
2007-06-25 18:46                                     ` erik quanstrom
2007-06-24  4:16                           ` Bruce Ellis
2007-06-24 18:05                             ` Skip Tavakkolian
2007-06-22 23:20               ` [9fans] About 9P Skip Tavakkolian
2007-06-22 23:48                 ` Francisco J Ballesteros
2007-06-23  0:27                   ` Roman Shaposhnick
2007-06-23  0:27                     ` Francisco J Ballesteros
2007-06-23 12:08                   ` erik quanstrom
2007-06-23 12:27                     ` Francisco J Ballesteros
2007-06-23 12:57                     ` Lucio De Re
2007-06-23 13:01                     ` Uriel
2007-06-23 13:36                       ` Francisco J Ballesteros
2007-06-23 14:27                         ` Lucio De Re
2007-06-23 14:45                           ` Francisco J Ballesteros
2007-06-22 21:16         ` Skip Tavakkolian
2007-06-22 21:37           ` Philippe Anel

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