Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2015 15:49:50 +0200
From:      Felipe Monteiro de Carvalho <felipemonteiro.carvalho@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   Uberblock location
Message-ID:  <CACyNnZMu=Y77uKNji0KP2atDGbT7Hv0RqGFaPDe1noMODv1iMw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

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?

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.

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.

Any ideas?

thanks,
-- 
Felipe Monteiro de Carvalho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACyNnZMu=Y77uKNji0KP2atDGbT7Hv0RqGFaPDe1noMODv1iMw>