Uberblock location

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sun Jul 5 15:24:16 UTC 2015


On Fri, Jul 3, 2015 at 6:09 PM, Julian Elischer <julian at freebsd.org> wrote:
> which? the kernel code or the bootblock code?
> I believe the bootblock version /usr/src/sys/boot/zfs from woudl be easier
> to start with.

Yes, I'm basing in the bootblock code.

> define "path".. in a way that is OS independent and meaningful when running
> in a bios environment (bootblocks).

Yes, its not meaningful for the boot, but my point was not that the
boot code doesn't handle the info, but instead that the partition does
not contain this info, which would be very useful for a user program.

Surely the zfs pool handling tools must store this info somewhere
(probably somewhere in /etc) if the partition itself doesn't contain
it.

> i should be from the base of the partition containing the filesystem but I
> feel you are
> probably already doing this of you probably wouldn't have got this far.

Yes, I meant partition start.

Anyway, I think I figured out myself, it looks like that the offsets
are relative to VDEV_LABEL_START_SIZE

thanks,
-- 
Felipe Monteiro de Carvalho


More information about the freebsd-fs mailing list