From owner-freebsd-current Mon Feb 24 6:36:21 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 808FD37B405 for ; Mon, 24 Feb 2003 06:36:20 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id A392843FDD for ; Mon, 24 Feb 2003 06:36:18 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h1OEaHeG029179; Mon, 24 Feb 2003 09:36:17 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h1OEaFju029178; Mon, 24 Feb 2003 09:36:15 -0500 (EST) (envelope-from hiten) Date: Mon, 24 Feb 2003 09:36:15 -0500 From: Hiten Pandya To: Bruce Evans Cc: Hiten Pandya , current@FreeBSD.ORG Subject: Re: machdep.guessed_bootdev sysctl on i386 Message-ID: <20030224143615.GB74746@unixdaemons.com> References: <20030224163424.R5465-100000@gamplex.bde.org> <20030224174824.T5729-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030224174824.T5729-100000@gamplex.bde.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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