9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] origin of /root
@ 2014-04-17 12:30 arisawa
  2014-04-17 12:51 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: arisawa @ 2014-04-17 12:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello  all,

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

Kenji Arisawa




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

* Re: [9fans] origin of /root
  2014-04-17 12:30 [9fans] origin of /root arisawa
@ 2014-04-17 12:51 ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2014-04-17 12:51 UTC (permalink / raw)
  To: 9fans

> 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



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

end of thread, other threads:[~2014-04-17 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-17 12:30 [9fans] origin of /root arisawa
2014-04-17 12:51 ` erik quanstrom

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