From owner-freebsd-alpha Mon Dec 31 12:39:49 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id 4305537B43A for ; Mon, 31 Dec 2001 12:39:27 -0800 (PST) Received: (qmail 25377 invoked from network); 31 Dec 2001 20:39:25 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 31 Dec 2001 20:39:25 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 31 Dec 2001 12:39:15 -0800 (PST) From: John Baldwin To: (Christian Weisgerber) Subject: Re: -CURRENT boot1 broken? Cc: freebsd-alpha@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 31-Dec-01 Christian Weisgerber wrote: > John Baldwin 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 <>< 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