From owner-freebsd-fs@freebsd.org Sun Jul 5 15:24:16 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1EFD9A14D for ; Sun, 5 Jul 2015 15:24:16 +0000 (UTC) (envelope-from felipemonteiro.carvalho@gmail.com) Received: from mail-pd0-x22f.google.com (mail-pd0-x22f.google.com [IPv6:2607:f8b0:400e:c02::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E55DE1AA1; Sun, 5 Jul 2015 15:24:15 +0000 (UTC) (envelope-from felipemonteiro.carvalho@gmail.com) Received: by pddu5 with SMTP id u5so3542343pdd.3; Sun, 05 Jul 2015 08:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7lCvdf7YhocBdIxjrTrDj2XwQGNouq3eIm1KtOME920=; b=Rvc1jryHd1h5ss/x2N7JhFcc10lOOc/evohwW2l7MkuD1FUiCizTT6Rbj1ZjzFqhi8 bPrjITidlh0y7FpyiTu1idNEdlRgYYhPh04ziLgBX3tqg9y2+WwwYLuOvsKowPLC5DWB vZ7p5wrHQfG2qbSdfC12iVnI1vAOZjs3JBoLvx8kdLzvvz6PfkHiGT4AKRDAeTAQAth+ ff7EFi9fKab7rGGoutxmTv5F6JN3/8ibmlkzsXlVkzwh+Dam1XQGtr0OQI9g+VyGJRP4 /6ts+gdga7EnCMfBme78IBI5FPDX5e9xxZsgU6Tr/lMT8WMK504GM4cjYG4qM/8tHzFj xBxQ== MIME-Version: 1.0 X-Received: by 10.66.136.39 with SMTP id px7mr36042509pab.141.1436109854855; Sun, 05 Jul 2015 08:24:14 -0700 (PDT) Received: by 10.66.147.4 with HTTP; Sun, 5 Jul 2015 08:24:14 -0700 (PDT) In-Reply-To: <5596B3CF.50703@freebsd.org> References: <557B0255.8060809@freebsd.org> <01184F08-1C6B-4282-9203-1BF98F07A05A@gmail.com> <557C282D.8060809@freebsd.org> <5596B3CF.50703@freebsd.org> Date: Sun, 5 Jul 2015 17:24:14 +0200 Message-ID: Subject: Re: Uberblock location From: Felipe Monteiro de Carvalho To: Julian Elischer Cc: "freebsd-fs@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2015 15:24:16 -0000 On Fri, Jul 3, 2015 at 6:09 PM, Julian Elischer 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