From owner-freebsd-geom@FreeBSD.ORG Thu Apr 2 17:43:22 2009 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 B98F0106566C for ; Thu, 2 Apr 2009 17:43:22 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout015.mac.com (asmtpout015.mac.com [17.148.16.90]) by mx1.freebsd.org (Postfix) with ESMTP id A68F08FC14 for ; Thu, 2 Apr 2009 17:43:22 +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 macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp015.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KHH00GP6IJXXG50@asmtp015.mac.com> for freebsd-geom@freebsd.org; Thu, 02 Apr 2009 10:43:13 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Andriy Gapon In-reply-to: <49D4AAFA.1000407@icyb.net.ua> Date: Thu, 02 Apr 2009 10:43:09 -0700 References: <49D4AAFA.1000407@icyb.net.ua> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-geom@freebsd.org Subject: Re: gpart micro-how-to 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: Thu, 02 Apr 2009 17:43:23 -0000 On Apr 2, 2009, at 5:09 AM, Andriy Gapon wrote: > # the following are disklabel substitutes: create empty labels, then > add ufs > # partition ad10s1a, swap partition ad10s1b and partition ad10s2d of > type > # "unknown"/FS_OTHER/10 for future use by zfs The BSD scheme has a type for ZFS: #define FS_ZFS 27 /* Sun's ZFS */ You should be able to say: gpart create -s bsd ad10s2 gpart add -i 4 -b 16 -s 964194257 -t freebsd-zfs ad10s2 This has been MFC'd it to 7-stable slightly more than a year ago. FYI, -- Marcel Moolenaar xcllnt@mac.com