Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 09:36:15 -0500
From:      Hiten Pandya <hiten@unixdaemons.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Hiten Pandya <hiten@unixdaemons.com>, current@FreeBSD.ORG
Subject:   Re: machdep.guessed_bootdev sysctl on i386
Message-ID:  <20030224143615.GB74746@unixdaemons.com>
In-Reply-To: <20030224174824.T5729-100000@gamplex.bde.org>
References:  <20030224163424.R5465-100000@gamplex.bde.org> <20030224174824.T5729-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans (Mon, Feb 24, 2003 at 06:27:26PM +1100) wrote:
> On Mon, 24 Feb 2003, I wrote:
> I tested with plain -current and old boot blocks.  The sysctl still reports
> ad disks correctly.
> 
> I don't care about the sysctl but want to keep the boot blocks as
> backwards compatible as possible.  That means passing the boot device
> in the old encoding, which only takes a couple of lines of code.
> Current kernels ignore this and use a device name passed in the
> environment.  This is presumably returned by the kenv syscall although
> not by a sysctl, so the sysctl is certainly not needed.  I didn't test
> this since my boot blocks are too old and simple to pass an environment.
> They pass the device name more directly.

Ok, I don't want to change the encoding or anything, but I think the
sysctl should be nuked.  Please see my later post to this thread, I have
provided a patch.

Cheers.

-- 
Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org)
http://www.unixdaemons.com/~hiten/

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?20030224143615.GB74746>