Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2015 17:24:14 +0200
From:      Felipe Monteiro de Carvalho <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:  <CACyNnZNdOrH3j3fTBNPVo%2Bcoc0JxkMn%2BjL8wbBAhHUDtDD7Vgw@mail.gmail.com>
In-Reply-To: <5596B3CF.50703@freebsd.org>
References:  <CACyNnZMu=Y77uKNji0KP2atDGbT7Hv0RqGFaPDe1noMODv1iMw@mail.gmail.com> <557B0255.8060809@freebsd.org> <01184F08-1C6B-4282-9203-1BF98F07A05A@gmail.com> <557C282D.8060809@freebsd.org> <CACyNnZOpawH=RLfP1cJqF58=dqiONNKoJ-DN4GLi9Jy=VnxZPA@mail.gmail.com> <5596B3CF.50703@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 3, 2015 at 6:09 PM, Julian Elischer <julian@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACyNnZNdOrH3j3fTBNPVo%2Bcoc0JxkMn%2BjL8wbBAhHUDtDD7Vgw>