bin/119976: [patch] Add ZFS support to gpt(8)
Niki Denev
nike_d at cytexbg.com
Mon Feb 4 10:45:21 UTC 2008
On Feb 4, 2008 12:23 PM, Simun Mikecin <numisemis at yahoo.com> wrote:
>
> --- Niki Denev <nike_d at cytexbg.com> wrote:
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/119976
> >
> > I'm running here with similar patch and it works ok.
> >
> > But the changes to migrate.c in the PR's patch will probably won't do anything
> > because FS_ZFS is not defined in /usr/include/sys/disklabel.h
> >
> > There was some discussion about adding it :
> > http://readlist.com/lists/freebsd.org/freebsd-current/8/44907.html
>
> FS_ZFS *is* defined in v.110 of disklabel.h which is commited to 8-CURRENT (which is the version
> that this PR is refering to).
>
Sorry, I missed that.
The patch is complete in that case, and it would be good to support
ZFS natively with gpt, gpart seems to support it already :
# gpart show da0
=> 34 2929686461 da0 GPT (1.5TB)
34 128 1 freebsd-boot (65.5KB)
162 104857600 2 freebsd-ufs (53.7GB)
104857762 16777216 3 freebsd-swap (8.6GB)
121634978 2808051517 4 freebsd-zfs (1.4TB)
# gpt -r show da0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 128 1 GPT part - FreeBSD boot
162 104857600 2 GPT part - FreeBSD UFS/UFS2
104857762 16777216 3 GPT part - FreeBSD swap
121634978 2808051517 4 GPT part - 516e7cba-6ecf-11d6-8ff8-00022d09712b
2929686495 32 Sec GPT table
2929686527 1 Sec GPT header
WITH_PATCHED_GPT :
# gpt-zfs -r show da0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 128 1 GPT part - FreeBSD boot
162 104857600 2 GPT part - FreeBSD UFS/UFS2
104857762 16777216 3 GPT part - FreeBSD swap
121634978 2808051517 4 GPT part - FreeBSD ZFS
2929686495 32 Sec GPT table
2929686527 1 Sec GPT header
--Niki
More information about the freebsd-current
mailing list