From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 21:16:14 2009 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BFF81065676; Tue, 17 Feb 2009 21:16:14 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout018.mac.com (asmtpout018.mac.com [17.148.16.93]) by mx1.freebsd.org (Postfix) with ESMTP id 2C85F8FC17; Tue, 17 Feb 2009 21:16:14 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp018.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KF8007MZB2KQF30@asmtp018.mac.com>; Tue, 17 Feb 2009 13:16:01 -0800 (PST) Message-id: From: Marcel Moolenaar To: Poul-Henning Kamp In-reply-to: <15768.1234902459@critter.freebsd.dk> Date: Tue, 17 Feb 2009 13:15:55 -0800 References: <15768.1234902459@critter.freebsd.dk> X-Mailer: Apple Mail (2.930.3) Cc: "Bjoern A. Zeeb" , Marcel Moolenaar , FreeBSD current mailing list Subject: Re: boot0cfg -s vs. GEOM_PART_*? 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: Tue, 17 Feb 2009 21:16:14 -0000 On Feb 17, 2009, at 12:27 PM, Poul-Henning Kamp wrote: > In message , Marcel > Moolenaar wri > tes: > >>> We do not want arbitrary large binary blobs in the confxml >>> output. >> >> I'm not going to start a discussion on arbitrariness >> and largeness of bootcode. Instead, let me just ask: >> >> Do you have alternatives? > > Open the parent device, use read(2) to get it. > > You can always open an geom device for reading (subject > to filesystem permissions). For boot0cfg this is probably acceptable, because it only operates on MBRs. But as a generic solution this won't work. -- Marcel Moolenaar xcllnt@mac.com