From owner-freebsd-current@FreeBSD.ORG Sat Jun 30 06:00:15 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 C69C516A41F; Sat, 30 Jun 2007 06:00:15 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 816AC13C458; Sat, 30 Jun 2007 06:00:15 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1I4W0D-0004JW-FL; Sat, 30 Jun 2007 09:00:13 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: "Wojciech A. Koszek" In-reply-to: Your message of Fri, 29 Jun 2007 23:20:33 +0000 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 30 Jun 2007 09:00:13 +0300 From: Danny Braniss Message-ID: Cc: freebsd-current@freebsd.org Subject: Re: INCLUDE_CONFIG_FILE off-by-one problem 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: Sat, 30 Jun 2007 06:00:15 -0000 > On Wed, Jun 06, 2007 at 10:18:40AM +0300, Danny Braniss wrote: > > to get the config file from the kernel, one can use config -k, which > > executes elfdump to get the offset and size. The size is actually 1(one) > > byte too big, and so the output of config -k contains a NULL/0/^@ as > > the last byte. I think the problem is in the elf file. > > Why do you think that the problem lies in the ELF file? the size is wrongly reported. > > Can you confirm that following sysctls: > > kern.geom.confxml > kern.geom.conftxt > > don't suffer from the same problem? they are both empty. (and yes, geom_label is loaded). > > > btw, it would realy be nice if the sys/conf/NOTES file is updated. > > I can change NOTES soon. I have huge email lag. > fine, cheers danny