From owner-freebsd-geom@FreeBSD.ORG Thu Apr 2 17:51:48 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 24438106564A for ; Thu, 2 Apr 2009 17:51:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 692408FC12 for ; Thu, 2 Apr 2009 17:51:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA19142; Thu, 02 Apr 2009 20:51:43 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <49D4FB2E.50909@icyb.net.ua> Date: Thu, 02 Apr 2009 20:51:42 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: Marcel Moolenaar References: <49D4AAFA.1000407@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:51:48 -0000 on 02/04/2009 20:43 Marcel Moolenaar said the following: > > 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. Thank you very much! Stupid me was looking in src/sbin/bsdlabel, not in sys/sys/disklabel.h. -- Andriy Gapon