From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 18:31:17 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 88BFB106575D; Tue, 17 Feb 2009 18:31:17 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout014.mac.com (asmtpout014.mac.com [17.148.16.89]) by mx1.freebsd.org (Postfix) with ESMTP id 6BB1F8FC12; Tue, 17 Feb 2009 18:31:17 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp014.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KF80098K3CNIG10@asmtp014.mac.com>; Tue, 17 Feb 2009 10:31:14 -0800 (PST) Message-id: From: Marcel Moolenaar To: "Bjoern A. Zeeb" In-reply-to: <20090217113718.N53478@maildrop.int.zabbadoz.net> Date: Tue, 17 Feb 2009 10:29:10 -0800 References: <20090217113718.N53478@maildrop.int.zabbadoz.net> X-Mailer: Apple Mail (2.930.3) Cc: 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 18:31:19 -0000 On Feb 17, 2009, at 3:46 AM, Bjoern A. Zeeb wrote: > with a fresh kernel and world from last night I get: > > dopt# boot0cfg -s 3 ad4 > boot0cfg: /dev/ad4: ad4 > boot0cfg: /dev/ad4: ioctl DIOCSMBR: Inappropriate ioctl for device > > is this GEOM_PART_* fallout and can it be fixed? boot0cfg is not (yet) supported by GPART. It should not be too hard: 1. We need to expose the current bootcode through kern.geom.confxml 2. boot0cfg grabs the bootcode from the XML, makes the changes in memory and then uses existing g_part ctlreq to update the bootcode. > I am wondering how to change it from a rnning system now, as > > dopt# gpart set -a active -i 3 ad4 > gpart: pre-check failed: Device not configured Fixed in revision 188723. Sorry about that. -- Marcel Moolenaar xcllnt@mac.com