9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9vx and local file systems
@ 2008-07-18 18:22 Brian L. Stuart
  2008-07-18 20:39 ` Russ Cox
  0 siblings, 1 reply; 28+ messages in thread
From: Brian L. Stuart @ 2008-07-18 18:22 UTC (permalink / raw)
  To: 9fans

A little while back Russ suggested that someone might
want to look into making 9vx boot using a native
fossil/venti file system partition for root.  For
anyone who's interested, as of this morning, that
is working.  It's a little kludgy in places, but
mostly it's not too bad.  When I've cleaned it up
a bit I'll make some patches available.

If you care about the gory details:
- Putting fossil and venti in the 9vx image was the
easy part.
- Making sdloop identify the available disks on
startup wasn't too bad.  I couldn't think of a
better way to search than to look for the common
naming schemes: sd[a-j0-9], hd[a-j], wd[0-9],
cciss/c[0-8]d[0-8].  The only gotcha was that
this happened too early for namec() to work, so
I deferred namec() until the first attempt to use
the device.
- boot/boot did bad things if the localroot
wasn't set, so when using boot/boot it's now .
- The kernel normally gets the partitioning for
the root drive from 9load, but we don't have
9load here.  So I stole part.c from /sys/src/boot
and "adjusted" it and devsd.c to play nice
together.
- The messiest bit, though, is venti and networking.
boot/boot figures it needs to set up the loopback
interface for venti.  But /net/ipifc doesn't exit
and boot/boot considers this fatal.  I suppose
the Right Way(tm) to is to implement /net/ipifc
and have it translate operations to the underlying
network stack, but that seems an awful lot of
work, for rather few applications.  The not so
right way would be to fake it, providing the
interface, but just pretend all the messages
succeed.  But I copped out.  I made one change
to boot/boot.  Now if it fails to open /net/ipifc/clone,
it's not fatal.

Thanks,
BLS




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

end of thread, other threads:[~2008-07-24 23:23 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <071820081822.3544.4880DF75000734D900000DD822218675169B0A02D2089B>
2008-07-18 19:00 ` [9fans] 9vx and local file systems erik quanstrom
2008-07-18 19:50   ` Roman V. Shaposhnik
2008-07-18 20:20     ` erik quanstrom
2008-07-18 20:28       ` ron minnich
2008-07-19  1:31         ` erik quanstrom
2008-07-19  2:10           ` ron minnich
2008-07-19  2:37           ` Russ Cox
2008-07-21 13:26             ` [9fans] (no subject) kokamoto
2008-07-21 14:45               ` a
2008-07-21 15:17               ` [9fans] 9vx vs drawterm Tim Wiess
2008-07-21 18:32                 ` [9fans] Sam Benjamin Huntsman
2008-07-18 20:31       ` [9fans] 9vx and local file systems Russ Cox
2008-07-18 21:55       ` Francisco J Ballesteros
2008-07-18 20:35   ` Russ Cox
2008-07-18 18:22 Brian L. Stuart
2008-07-18 20:39 ` Russ Cox
2008-07-18 20:55   ` Charles Forsyth
2008-07-18 20:50     ` Sape Mullender
2008-07-18 20:55   ` Charles Forsyth
2008-07-18 22:10   ` Brian L. Stuart
2008-07-20  7:53     ` Russ Cox
2008-07-23 14:40       ` Brian L. Stuart
2008-07-23 17:51         ` Russ Cox
2008-07-23 18:50           ` Brian L. Stuart
2008-07-24 19:14           ` Brian L. Stuart
     [not found]             ` <1cb06bb5ba32c2070a940af01f4d91c3@plan9.bell-labs.com>
2008-07-24 19:24               ` Brian L. Stuart
2008-07-24 19:26             ` David Leimbach
2008-07-24 23:23               ` Francisco J Ballesteros

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