|
|
Up |
|
|
  |
Author: Brian L. StuartBrian L. Stuart Date: Jul 18, 2008 11:28
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...
|
| Show full article (1.69Kb) |
|
| | 10 Comments |
|
  |
Author: Russ CoxRuss Cox Date: Jul 18, 2008 13:42
> 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.
Thanks for working through this.
I'm glad to hear it works.
> - boot/boot did bad things if the localroot
> wasn't set, so when using boot/boot it's now .
What bad things did it do? The code is supposed
to cope gracefully with localroot == nil. I'd rather
fix the code that couldn't cope.
|
| Show full article (1.56Kb) |
|
| | 9 Comments |
|
  |
Author: Charles ForsythCharles Forsyth Date: Jul 18, 2008 13:50
why can't venti and fossil on the same machine be connected by a pipe?
|
| |
| no comments |
|
  |
Author: Brian L. StuartBrian L. Stuart Date: Jul 18, 2008 15:13
>> - boot/boot did bad things if the localroot
>> wasn't set, so when using boot/boot it's now .
>
> What bad things did it do? The code is supposed
> to cope gracefully with localroot == nil. I'd rather
> fix the code that couldn't cope.
Ah, that means I need to remember. As you get older,
one of the first things to go is the ability to form
new memories. What were we talking about?
Seriously, that was one of the ones that went by
pretty quickly. Several had the basic behavior
of boot/boot exiting because it found something
that made it call fatal(). Then when it died,
9vx happily rolled over and played dead. When
the window first vanished, it was a bit startling.
|
| Show full article (2.15Kb) |
| 7 Comments |
|
  |
Author: Russ CoxRuss Cox Date: Jul 20, 2008 00:55
>>> - boot/boot did bad things if the localroot
>>> wasn't set, so when using boot/boot it's now .
I think this is fixed in hg now. I found one place where
localroot was going to be used even though
it shouldn't.
> I'm beginning to think the lock-ups some of us have
> seen are somewhere in devfs-posix.c. When I'm using
> it like drawterm, I've never seen it lock up. When
> I was using it with the local fossil/venti as root
> today, it didn't. In neither case was #Z bound.
> It's at least suggestive.
Since the local fossil/venti goes through #Z to get at
the disk device, this doesn't exactly support your theory.
I can still believe it, though. Are you perhaps on a Mac?
I fixed some pthread-related bugs on July 3 in hg,
which is post-0.12.
|
| Show full article (1.43Kb) |
| 6 Comments |
|
  |
Author: Brian L. StuartBrian L. Stuart Date: Jul 23, 2008 07:44
>>>> - boot/boot did bad things if the localroot
>>>> wasn't set, so when using boot/boot it's now .
>
> I think this is fixed in hg now. I found one place where
> localroot was going to be used even though
> it shouldn't.
Yes, that seems to work correctly now.
>> I'm beginning to think the lock-ups some of us have
>> seen are somewhere in devfs-posix.c. When I'm using
>> it like drawterm, I've never seen it lock up. When
>> I was using it with the local fossil/venti as root
>> today, it didn't. In neither case was #Z bound.
>> It's at least suggestive.
>
> Since the local fossil/venti goes through #Z to get at
> the disk device, this doesn't exactly support your theory.
> I can still believe it, though. Are you perhaps on a Mac?
> I fixed some pthread-related bugs on July 3 in hg,
> which is post-0.12.
|
| Show full article (2.54Kb) |
| 5 Comments |
|
  |
Author: Russ CoxRuss Cox Date: Jul 23, 2008 10:57
> I'm doing all of this on Linux. Since then, I have seen
> it lock up when running from a fossil/venti root and #Z
> not bound. I can't support it with statistics, but my gut
> reaction is that it's less often though.
If this happens again, then running "thread apply all where 20"
in gdb should help determine what's going on.
> 9vx read a plan9.ini file. So I've been folding 9load's
> ini file reader into 9vx. This is not so much massaging
> as with part.c, but liposuction.
I would be inclined to do away with full plan9.ini
parsing and just read a file containing
name=value
lines that get stuffed immediately into the config
environment (ksetenv). Or just pass a couple
name=value pairs on the command line.
Allowing the plan9.ini disease to spread seems
like a lose.
Russ
|
| |
| 4 Comments |
|
  |
Author: Brian L. StuartBrian L. Stuart Date: Jul 23, 2008 11:52
> If this happens again, then running "thread apply all where 20"
> in gdb should help determine what's going on.
I'll give that a try.
> I would be inclined to do away with full plan9.ini
> parsing and just read a file containing
>
> name=value
>
> lines that get stuffed immediately into the config
> environment (ksetenv).
As it turns out, that's more or less what I've done.
I don't build an internal structure or try to leave
it in some known place in memory like the original,
and I dumped the bits that parse the device type and
stuff. All that's left is calling ksetenv() on everything
I find.
|
| Show full article (0.98Kb) |
| no comments |
|
  |
Author: Brian L. StuartBrian L. Stuart Date: Jul 24, 2008 12:17
The changes I mentioned earlier that allow 9vx to use
a local disk partition as root are ready for advised*
public consumption.
I've put everything up on the page:
http://umdrive.memphis.edu/blstuart/9vx/local9vx.html
Russ, if you want to consider these for inclusion in
the main tree, you can pull it from there, or I can
send them to you in another form if that's preferable.
* May cause cancer in rats. Your mileage may vary.
Some side effects are dry mouth, drowsiness, and
trouble sleeping. Ask your doctor if this may be
right for you.
Thanks,
BLS
|
| |
| 2 Comments |
|
  |
|
|
  |
Author: David LeimbachDavid Leimbach Date: Jul 24, 2008 12:29
getting the 404 on that link.
On Thu, Jul 24, 2008 at 12:14 PM, Brian L. Stuart bellsouth.net>
wrote:
|
| Show full article (1.38Kb) |
| 1 Comment |
|
|
|
|