From owner-freebsd-current@FreeBSD.ORG Mon Mar 19 14:49:31 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 1A3A116A40B for ; Mon, 19 Mar 2007 14:49:31 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.freebsd.org (Postfix) with ESMTP id 47CD513C4AE for ; Mon, 19 Mar 2007 14:49:29 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.13.4/8.12.9) with ESMTP id l2JFJof0021767 for ; Mon, 19 Mar 2007 15:19:50 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id l2JFJo8w021766 for freebsd-current@FreeBSD.org; Mon, 19 Mar 2007 15:19:50 GMT (envelope-from dunstan) Date: Mon, 19 Mar 2007 15:19:49 +0000 From: "Wojciech A. Koszek" To: freebsd-current@FreeBSD.org Message-ID: <20070319151949.GB21673@FreeBSD.czest.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (freebsd.czest.pl [80.48.250.4]); Mon, 19 Mar 2007 15:19:50 +0000 (UTC) Cc: Subject: 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: Mon, 19 Mar 2007 14:49:31 -0000 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. Comments are welcome, Regards, -- Wojciech A. Koszek wkoszek@FreeBSD.org http://FreeBSD.czest.pl/dunstan/