Date: Mon, 4 Feb 2008 12:45:20 +0200 From: "Niki Denev" <nike_d@cytexbg.com> To: "Simun Mikecin" <numisemis@yahoo.com> Cc: freebsd-current@freebsd.org Subject: Re: bin/119976: [patch] Add ZFS support to gpt(8) Message-ID: <2e77fc10802040245u5452f63dq905b849a92cd7f9b@mail.gmail.com> In-Reply-To: <64392.39143.qm@web36608.mail.mud.yahoo.com> References: <2e77fc10802040214n5f0141c0gdd76d74b67904a83@mail.gmail.com> <64392.39143.qm@web36608.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 4, 2008 12:23 PM, Simun Mikecin <numisemis@yahoo.com> wrote: > > --- Niki Denev <nike_d@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e77fc10802040245u5452f63dq905b849a92cd7f9b>