9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] origin of /root
Date: Thu, 17 Apr 2014 08:51:10 -0400	[thread overview]
Message-ID: <92444c88f943fcfc544e87f7378d8e10@brasstown.quanstro.net> (raw)
In-Reply-To: <E9CADCCB-4824-482E-8CB0-6B897509EDC8@ar.aichi-u.ac.jp>

> have we reliable way to find the origin of /root.
> local file system?
> remote file system?

define origin.

locating the server isn't too hard.  if ndb is properly set up, then this should work

if '#ec/nobootprompt' or '#ec/bootargs' is il or tcp, then
	; ndb/ipquery sys $sysname fs
	fs=lyons.quanstro.net
else it's local, and you're done.

alternate method (potentially less reliable):

1.  grep '[ 	](#s|/srv)/boot'.  if any process has it open, it's the file server, else
2. find a tcp or il connection with remote net!*!9fs, and that's your file server.
when in doubt, it's likely the lowest numbered fs.

- erik



      reply	other threads:[~2014-04-17 12:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17 12:30 arisawa
2014-04-17 12:51 ` erik quanstrom [this message]

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=92444c88f943fcfc544e87f7378d8e10@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --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).