From owner-freebsd-geom@FreeBSD.ORG Sun Jul 27 20:23:57 2008 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7293106566B; Sun, 27 Jul 2008 20:23:57 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout016.mac.com (asmtpout016.mac.com [17.148.16.91]) by mx1.freebsd.org (Postfix) with ESMTP id B9E278FC1B; Sun, 27 Jul 2008 20:23:57 +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 [192.168.1.102] (209-128-86-226.BAYAREA.NET [209.128.86.226]) by asmtp016.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K4O00CR0J7OKM50@asmtp016.mac.com>; Sun, 27 Jul 2008 12:23:49 -0700 (PDT) Sender: xcllnt@mac.com Message-id: From: Marcel Moolenaar To: Ulf Lilleengen In-reply-to: <200807271910.m6RJA9qB060568@freefall.freebsd.org> Date: Sun, 27 Jul 2008 12:23:48 -0700 References: <200807271910.m6RJA9qB060568@freefall.freebsd.org> X-Mailer: Apple Mail (2.928.1) Cc: freebsd-geom@FreeBSD.org Subject: Re: bin/90093: fdisk(8) incapable of altering in-core geometry X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2008 20:23:57 -0000 On Jul 27, 2008, at 12:10 PM, Ulf Lilleengen wrote: > AFAICT, the fdisk code skips to using pwrite to write the MBR if the > MBR GEOM > class fails (which it will do if an MBR does not exist), and should > update > the MBR info correctly anyway. I was however unsuccessful altering the > geometry even with this patch. But the warning printed when geom_mbr > fails is > a bit confusing, since the write request might be successful anyway, > so we > should either just quell the warning, or make using geom_mbr work. Would you mind testing gpart? Just remove GEOM_MBR from your kernel (i.e. add nooption GEOM_MBR) and add options GEOM_PART_MBR instead. -- Marcel Moolenaar xcllnt@mac.com