From owner-freebsd-current@FreeBSD.ORG Sun Apr 22 02:03:51 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 39B7316A402; Sun, 22 Apr 2007 02:03:51 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.174]) by mx1.freebsd.org (Postfix) with ESMTP id 07DEC13C448; Sun, 22 Apr 2007 02:03:50 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/smtpout04/MantshX 4.0) with ESMTP id l3M23meE027500; Sat, 21 Apr 2007 19:03:48 -0700 (PDT) Received: from [192.168.5.252] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id l3M23j7O008752 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 21 Apr 2007 19:03:46 -0700 (PDT) In-Reply-To: References: <86wt076k7u.fsf@dwp.des.no> <619464E1-1CB4-4CFC-9ECF-7FC90DC24A20@mac.com> <863b2u18hz.fsf@dwp.des.no> <4629C2FE.9030301@samsco.org> <91BC1CF6-6C72-4263-A99A-C24FC209586E@mac.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Sat, 21 Apr 2007 19:02:43 -0700 To: Ivan Voras X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: freebsd-current@freebsd.org, freebsd-geom@freebsd.org Subject: Re: GPT as default? 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: Sun, 22 Apr 2007 02:03:51 -0000 On Apr 21, 2007, at 5:40 PM, Ivan Voras wrote: > Marcel Moolenaar wrote: >> On Apr 21, 2007, at 12:53 AM, Scott Long wrote: > >>> And as much as it pains me to say it, DES is right here ;-) >>> geom_gpt >>> needs to implement the appropriate verbs to allow apps to >>> instruct the >>> gpt instance to modify itself, instead of forcing apps to blindly >>> overwrite it. >> >> Those verbs exist. There's no poor design There's only a long time >> to get from A to B. > > In particular, what is missing? A (generic) tool that utilizes the verbs. > Users will need at least the possibility to add and remove partitions > while the system is running and some partitions are mounted. > Looking at > the source tree, it seems that the userland utility is missing? > (There's > gpt(8) but it's for the old geom_gpt, right?) gpt(8) does not use GEOM verbs. It was written before that time. That's what the complains are mostly about. I started to convert geom_gpt to use verbs, but that grew into g_part because it's not only GPT that needs verbs and I also saw that APM (The Apple partitioning scheme) needed to be supported, which, if I were to do that, would need exactly the same thing. So, I extended the scope of the work... > Subquestion: geom_gpt names partitions "xxxp0", "xxxp1", etc. so what > happens if one of them is deleted? Will the numbers shift on next > boot? No. The partition number is the index of the partition entry in the table. That typically does not change (though nothing prevents a tool to reorder the entries in the table or compact the table). > I think I'l also include out of the box geom_label support :) GPT (like APM) has labels, which we should propagate. It's not a priority for me, but I presume that it shouldn't be too difficult to interface with geom_label. > Alternative is to use GUIDs, like some Linuxes do, so we have entries > like /dev/gpt/38a52be4-9352-453e-af97-5c3b448652f0 I've thought about that too, but again it's not a priority. It takes me long enough as it is to adopt the new world order that other features have to wait :-) -- Marcel Moolenaar xcllnt@mac.com