Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Dec 2001 12:39:15 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        (Christian Weisgerber) <naddy@mips.inka.de>
Cc:        freebsd-alpha@freebsd.org
Subject:   Re: -CURRENT boot1 broken?
Message-ID:  <XFMail.011231123915.jhb@FreeBSD.org>
In-Reply-To: <a0ococ$50e$1@kemoauc.mips.inka.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On 31-Dec-01 Christian Weisgerber wrote:
> John Baldwin <jhb@FreeBSD.org> wrote:
> 
>> > This suggests that boot1 is broken.
>> 
>> Ugh, it shouldn't be. :(
> 
> Well, I guess it isn't.  When I moved my system to a new disk, I
> created all filesystems with 16384/2048.  Pretty useless for the
> root filesystem, I admit, except for consistency's sake.  Turns out
> that boot1 doesn't handle this.  Jumping through some hoops I have
> moved / back to 8192/1024 and it works fine now.  *Sigh*

Ouch!  It seems boot1 does need fixing to handle different sizes.

#define BUFSIZE 8192
#define MAPBUFSIZE BUFSIZE
static char buf[BUFSIZE], fsbuf[BUFSIZE], iobuf[BUFSIZE];

It assumes a bufsize of 8192 at least.  Perhaps buf, fsbuf, and iobuf should be
malloc'd and should use a variable read from the disklabel rather than a
constant?

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.011231123915.jhb>