Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 1999 23:19:49 +0200
From:      Jos Backus <Jos.Backus@nl.origin-it.com>
To:        current@freebsd.org
Subject:   Re: mountroot problem
Message-ID:  <19990508231949.A93718@hal.mpn.cp.philips.com>
In-Reply-To: <19990508202536.A92612@hal.mpn.cp.philips.com>; from Jos Backus on Sat, May 08, 1999 at 08:25:36PM %2B0200
References:  <19990508202536.A92612@hal.mpn.cp.philips.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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