9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David du Colombier <0intro@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] venti backup
Date: Fri, 20 Jan 2012 23:39:11 +0100	[thread overview]
Message-ID: <20120120233911.6ba91fec@gmail.com> (raw)
In-Reply-To: <CAFo14L1Kb0A=SMN9woVeKf37-JYL=oKg0HVxdBwkOc=ENz+c7Q@mail.gmail.com>

> Does the presence of the trailer imply that I should add an extra
> block to the arenas backup?
> If my last arena is
>
> arena='arenas059' [31676186624,32213057536)
>
> then I should backup 32213057536+8192 bytes instead of 32213057536?

No, the trailer is located at the end of the arena,
just after clump info.

The second number you see is the start of the next arena.
It is preceded by two blocks:

 - the arena header of the next arena,
 - the arena trailer of the precedent arena.

32213057536/8192 = 3932258

In you example, arenas060 start at 3932258, so the header of
arenas060 is 3932257 and the trailer of arenas059 is 3932256.

You should really backup from 1048576-8192 (start of arenas00,
including header) to 32213057536-2*8192 (end of arenas059,
including trailer).

Like many Venti tools, checkarenas check each arena header
and trailer and verify they match. So you should be confident.

--
David du Colombier



  reply	other threads:[~2012-01-20 22:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-17 12:34 hugo rivera
2012-01-17 13:02 ` Steve Simon
2012-01-17 13:14   ` hugo rivera
2012-01-17 13:04 ` David du Colombier
2012-01-19 16:11   ` hugo rivera
2012-01-19 16:45     ` David du Colombier
2012-01-19 23:04     ` David du Colombier
2012-01-20 11:03       ` hugo rivera
2012-01-20 15:02         ` David du Colombier
2012-01-20 17:04           ` hugo rivera
2012-01-20 18:19             ` David du Colombier
2012-01-20 19:10               ` hugo rivera
2012-01-20 22:39                 ` David du Colombier [this message]
2012-01-23 10:28                   ` hugo rivera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120120233911.6ba91fec@gmail.com \
    --to=0intro@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).