9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Roman V. Shaposhnik" <rvs@Sun.COM>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] fd2path and devsrv
Date: Wed, 19 Nov 2008 18:56:14 -0800	[thread overview]
Message-ID: <4924D1CE.9000001@Sun.COM> (raw)
In-Reply-To: <1575ef9ac681cb48018b7328ee52e953@quanstro.net>

[-- Attachment #1: Type: text/plain, Size: 1543 bytes --]

On 11/19/08 17:41, erik quanstrom wrote:
>> Ok, I can understand why devproc.c does it: it is easy to discover the
>> name of the actual Chan if you know the node in /srv:
>>    fd = open("#s/stuff", OREAD);
>>    fd2chan(fd, buf, sizeof(buf));
>>    close(fd);
>> but not the other way around. Buit why ns(1) doesn't have the above
>> code?
>>
>
> i assume that you mean fd2path.
Yes. Sorry -- clumsy fingers :-(

> i think the answer to your question is that it's a lot more useful
> to know that it's #s/boot rather than /net/il/0/data.
Really? Why? With /net/il/0/data you have an option of digging deeper and
finding out the other end's address, etc. Or to flip the question -- what
information does #s/boot provide?

> one cares more about what it does than the particulars of the
> connection.  the fact that #s/boot is the 0th il connection and
> not the nth wouldn't matter much unless you were debugging
> the ip stack.
>
> or is there some reason why this is interesting that i'm missing?
>
Well, to me knowing that mount came out of #s/stuff has never seemed to
be all that useful -- I can't imagine a question that this will answer.
So, unless
I am missing something I'd say it would be much more reasonable for ns(1)
to do that translation as much as it does translate /net/il/0/data into the
address of the remote end.

Once again -- this is a bit of an open-ended question: I just want to know
the experience of others and whether they find seeing #s/stuff useful
at all.

Thanks,
Roman.

[-- Attachment #2: Type: text/html, Size: 2266 bytes --]

  reply	other threads:[~2008-11-20  2:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-19 17:45 Roman V. Shaposhnik
2008-11-19 19:36 ` Francisco J Ballesteros
2008-11-20  1:37   ` Roman V. Shaposhnik
2008-11-20  1:41     ` erik quanstrom
2008-11-20  2:56       ` Roman V. Shaposhnik [this message]
2008-11-20  2:55         ` erik quanstrom
2008-11-20  3:31           ` Roman Shaposhnik
2008-11-20  3:32             ` erik quanstrom
2008-11-20  3:57               ` Roman Shaposhnik
2008-11-20  4:14                 ` erik quanstrom
2008-11-20  5:05                   ` Roman Shaposhnik
2008-11-20  9:44   ` roger peppe
2008-11-20 12:59     ` Steve Simon
2008-11-20 13:50       ` roger peppe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4924D1CE.9000001@Sun.COM \
    --to=rvs@sun.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).