Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2002 13:12:47 -0800
From:      Luigi Rizzo <rizzo@icir.org>
To:        "David O'Brien" <obrien@FreeBSD.ORG>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Proposed patch: kern.bootdev* sysctl variables
Message-ID:  <20020308131247.A13071@iguana.icir.org>
In-Reply-To: <20020308121713.D22956@dragon.nuxi.com>
References:  <20020308020009.A6535@iguana.icir.org> <20020308121713.D22956@dragon.nuxi.com>

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




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