From owner-freebsd-geom@FreeBSD.ORG Sat Feb 10 18:32:52 2007 Return-Path: X-Original-To: geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1603316A405 for ; Sat, 10 Feb 2007 18:32:52 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.172]) by mx1.freebsd.org (Postfix) with ESMTP id 015D413C46B for ; Sat, 10 Feb 2007 18:32:51 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/8.12.11/smtpout02/MantshX 4.0) with ESMTP id l1AIWnXR018854; Sat, 10 Feb 2007 10:32:49 -0800 (PST) Received: from [192.168.1.2] (c-67-164-11-148.hsd1.ca.comcast.net [67.164.11.148]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id l1AIWlx1019539 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 10 Feb 2007 10:32:48 -0800 (PST) In-Reply-To: <6781.1171062301@critter.freebsd.dk> References: <6781.1171062301@critter.freebsd.dk> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5BB89CF0-69CE-4A93-828B-298A13CD0F67@mac.com> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Sat, 10 Feb 2007 10:23:32 -0800 To: Poul-Henning Kamp X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: geom@FreeBSD.org Subject: Re: g_part partition tool -- some logistic questions 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: Sat, 10 Feb 2007 18:32:52 -0000 On Feb 9, 2007, at 3:05 PM, Poul-Henning Kamp wrote: > If you have bsd(mirror(ad0,ad1)), then the BSD parts should > be more desirable than the mirror or the disks. > > If on the other hand you have mirror(bsd(ad0),bsd(ad1)), then > the mirror should be more desirable than the bsd's and the disks. Actually, when you have mirror(bsd(ad0),bsd(ad1)) then ad0 and ad1 are the ones I want. But if you have bsd(mirror(ad0,ad1)), then I want the mirror. The reason is that bsd is a partitioning scheme and since I'm writing a partitioning tool, I'm working on the geom that's being partitioned. In an ideal world all partitioning schemes are handled by g_part, which means I can look for the g_part class and have them all, but for now I need to hardcode the numerous classes. I think when there's no partitioning class involved, then the highest ranking geom that has a provider may give me what I want. I think it would exclude "users" like VFS and DEV. Thanks, -- Marcel Moolenaar xcllnt@mac.com