From owner-freebsd-current Sat May 8 14:19:37 1999 Delivered-To: freebsd-current@freebsd.org Received: from gw-nl3.philips.com (gw-nl3.philips.com [192.68.44.35]) by hub.freebsd.org (Postfix) with ESMTP id 21C16154AD for ; Sat, 8 May 1999 14:19:33 -0700 (PDT) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl3.philips.com with ESMTP id XAA09594 for ; Sat, 8 May 1999 23:19:28 +0200 (MEST) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-eur1.philips.com(130.139.36.3) by gw-nl3.philips.com via mwrap (4.0a) id xma009592; Sat, 8 May 99 23:19:29 +0200 Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195]) by smtprelay-nl1.philips.com (8.9.3/8.6.10-1.2.2m-970826) with SMTP id XAA16520 for ; Sat, 8 May 1999 23:19:28 +0200 (MET DST) Received: (qmail 93766 invoked by uid 666); 8 May 1999 21:19:49 -0000 Date: Sat, 8 May 1999 23:19:49 +0200 From: Jos Backus To: current@freebsd.org Subject: Re: mountroot problem Message-ID: <19990508231949.A93718@hal.mpn.cp.philips.com> Reply-To: Jos Backus References: <19990508202536.A92612@hal.mpn.cp.philips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990508202536.A92612@hal.mpn.cp.philips.com>; from Jos Backus on Sat, May 08, 1999 at 08:25:36PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Some more information: In sys/i386/i386/autoconf I'm seeing the following happen: static void setroot() { int majdev, mindev, unit, slice, part; dev_t newrootdev; char partname[2]; char *sname; if (boothowto & RB_DFLTROOT || (bootdev & B_MAGICMASK) != B_DEVMAGIC) return; majdev = B_TYPE(bootdev); printf("setroot: majdev=%d,bdevsw(majdev)=%p\n",majdev,bdevsw(majdev)); if (majdev >= nblkdev || bdevsw(majdev) == NULL) return; unit = B_UNIT(bootdev); slice = B_SLICE(bootdev); etc. which prints setroot: majdev=4,bdevsw(majdev)=0 Thus the function returns, without setting the name of the root device further on in the code (it would appear that that is where it happens). -- Jos Backus _/ _/_/_/ "Reliability means never _/ _/ _/ having to say you're sorry." _/ _/_/_/ -- D. J. Bernstein _/ _/ _/ _/ Jos.Backus@nl.origin-it.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message