From owner-freebsd-geom@FreeBSD.ORG Mon Jun 27 18:10:11 2011 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0738106564A for ; Mon, 27 Jun 2011 18:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B02D18FC0C for ; Mon, 27 Jun 2011 18:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5RIABhc063811 for ; Mon, 27 Jun 2011 18:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5RIABbI063810; Mon, 27 Jun 2011 18:10:11 GMT (envelope-from gnats) Date: Mon, 27 Jun 2011 18:10:11 GMT Message-Id: <201106271810.p5RIABbI063810@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Marcel Moolenaar Cc: Subject: Re: kern/157724: [geom] gpart(8) 'add' command must preserve gap for schemes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcel Moolenaar List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2011 18:10:11 -0000 The following reply was made to PR kern/157724; it has been noted by GNATS. From: Marcel Moolenaar To: "Andrey V. Elsukov" Cc: bug-followup@FreeBSD.org, eirnym@gmail.com, Marcel Moolenaar Subject: Re: kern/157724: [geom] gpart(8) 'add' command must preserve gap for schemes Date: Mon, 27 Jun 2011 11:01:33 -0700 On Jun 27, 2011, at 10:40 AM, Andrey V. Elsukov wrote: > On 27.06.2011 20:39, Marcel Moolenaar wrote: >>> I am partially agree with you. geom_part_bsd does not protects >>> metadata from overwriting. And it is bad for users which are not >>> aware about this. Also it is easy to wipe metadata now, when >>> first partition of BSD scheme should not always have UFS file >>> system. >> >> There isn't a lot we can do about it. This is one of those >> historical mistakes that you can't fix without breaking with >> 30+ years of history. It's not worth the hassle IMO... > > Hi, Marcel > > I think we can just set gpt_first = 16 in g_part_bsd_create for new > tables and for existing tables also set gpt_first = 16 if all partitions > don not use this space. Something like this (untested): You may want to look at /etc/disktab. Are you willing to change all entries and deal with the consequences? :-) -- Marcel Moolenaar marcel@xcllnt.net