Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Apr 2009 20:51:42 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Marcel Moolenaar <xcllnt@mac.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: gpart micro-how-to
Message-ID:  <49D4FB2E.50909@icyb.net.ua>
In-Reply-To: <F4950230-017F-41B8-8E4A-14ED8185864A@mac.com>
References:  <49D4AAFA.1000407@icyb.net.ua> <F4950230-017F-41B8-8E4A-14ED8185864A@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49D4FB2E.50909>