From owner-freebsd-current@FreeBSD.ORG Fri Mar 23 04:03:07 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BD7616A401 for ; Fri, 23 Mar 2007 04:03:07 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5DBBF13C45D for ; Fri, 23 Mar 2007 04:03:07 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [192.168.42.21] (andersonbox1.centtech.com [192.168.42.21]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l2N436SV004728; Thu, 22 Mar 2007 23:03:06 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <4603517A.60008@freebsd.org> Date: Thu, 22 Mar 2007 23:03:06 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.10 (X11/20070320) MIME-Version: 1.0 To: "Wojciech A. Koszek" References: <20070319151949.GB21673@FreeBSD.czest.pl> In-Reply-To: <20070319151949.GB21673@FreeBSD.czest.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2907/Thu Mar 22 21:55:12 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-current@freebsd.org Subject: Re: Improved INCLUDE_CONFIG_FILE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2007 04:03:07 -0000 On 03/19/07 10:19, Wojciech A. Koszek wrote: > Hello, > > Current implementation of INCLUDE_CONFIG_FILE option has number of > issues. Including it in MAC or SMP configurations will bring only text > of this single file into the kernel file. We're not able to see > configuration of running ("live") kernel, which could be helpful while > tracking users' reports. You can't get easy to use file format, ready > for configuration process. > > In my Perforce wkoszek_kconftxt branch: > > //depot/user/wkoszek/wkoszek_kconftxt/... > > I brought some modifications to existing config(8) and added system > interface that would let us to see configuration of running kernel > (currently -- via kern.conftxt sysctl), as well as other kernel file > through config(8)'s -k option. > > It would be possible to redirect an output from either sysctl(8) or > config -k to the file, and config(8) would be smart enough to > do use this file without additional modifications. > > "subr_kopt.c" was chosen as a compromise, since I couldn't find a better > place, where "opt_global.h" would be included. I can't comment on where to put it, but I can say that this is a great feature update! I bet if you generate a nice patch for people, you'll get a lot of people tinkering with it. Eric