Date: Sat, 13 Jun 2015 11:43:37 +0200 From: felipemonteiro.carvalho@gmail.com To: Julian Elischer <julian@freebsd.org> Cc: "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org> Subject: Re: Uberblock location Message-ID: <01184F08-1C6B-4282-9203-1BF98F07A05A@gmail.com> In-Reply-To: <557B0255.8060809@freebsd.org> References: <CACyNnZMu=Y77uKNji0KP2atDGbT7Hv0RqGFaPDe1noMODv1iMw@mail.gmail.com> <557B0255.8060809@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
hello, Where can I find the source code that you are mentioning? I am reading the s= ource in https://github.com/zfsonlinux/zfs?files=3D1 but it is very large an= d so far I couldnt pinpoint where it finds the uberblock. Also the mention of bootblock confuses me since ita for booting while I am w= orking in a general case, not necessarely involving boot. thanks, Felipe Enviada do meu iPhone > Em 12/06/2015, =C3=A0s 18:01, Julian Elischer <julian@freebsd.org> escreve= u: >=20 >> On 6/12/15 9:49 PM, Felipe Monteiro de Carvalho wrote: >> Hello, >>=20 >> I am writing a program to read ZFS partitions, and although I already >> read a lot of documentation, there is 1 problem which is blocking me: >> How does the driver find the uberblock? >>=20 >> I know, I can just get any test volume, find the ZFS uberblock and in >> my case it is positioned in 0x20C00 and there are lots and lots of >> copies (older versions?) of it. >>=20 >> But there is no guarantee that it doesn't just happen to be in this >> position in my image and in another version it would be elsewhere, so >> I need the algorithm utilized to find it. >=20 > I presume you have looked at the zfs reading library in the bootblocks? >=20 >>=20 >> Any ideas? >>=20 >> thanks, >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01184F08-1C6B-4282-9203-1BF98F07A05A>