From owner-freebsd-arch Fri Mar 8 13:12:51 2002 Delivered-To: freebsd-arch@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 8B03D37B400; Fri, 8 Mar 2002 13:12:47 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g28LClJ13454; Fri, 8 Mar 2002 13:12:47 -0800 (PST) (envelope-from rizzo) Date: Fri, 8 Mar 2002 13:12:47 -0800 From: Luigi Rizzo To: "David O'Brien" Cc: arch@FreeBSD.ORG Subject: Re: Proposed patch: kern.bootdev* sysctl variables Message-ID: <20020308131247.A13071@iguana.icir.org> References: <20020308020009.A6535@iguana.icir.org> <20020308121713.D22956@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020308121713.D22956@dragon.nuxi.com> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I agree that we should have the same sysctl on all platforms. The issues are 1. what information should we export so that either the shell or some trivial userland program can make use of it ? For this one, a possibility could be to export the major/minor numbers for the device, and then maybe follow phk's suggestion of using devname(3) (however: does it work with devfs ?) or some equivalent approach. 2. where to grab the information we need. On this one, it looks like the bootdev info (and rootdev as well) is generated/available in MD files, and perhaps even in different forms on different architectures. See i386/i386/autoconf.c and alpha/alpha/autoconf.c for rootdevnames, for instance. So, for sure we can put the SYSCTL_* decls in some MI file, but I believe we will definitely need minor patches to the above-mentioned MD files to normalize the information. Does this make sense, and if not, can you be more specific on how to implement this feature in a way you would not object to ? cheers luigi On Fri, Mar 08, 2002 at 12:17:13PM -0800, David O'Brien wrote: > On Fri, Mar 08, 2002 at 02:00:09AM -0800, Luigi Rizzo wrote: > > Any objection to the following patch to i386/i386/autoconf.c > > to let userland apps know [an approximation of] the name > > of the device the kernel was booted from ? > > Yes. Things like this should not be committed to only i386. > We should have the same sysctl's on all platforms unless they are truly > platform Dependant. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message