9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] Quick question on fossil
Date: Mon, 12 Jan 2009 11:06:24 -0800	[thread overview]
Message-ID: <dd6fe68a0901121106h79474132ra2b461d8389ab259@mail.gmail.com> (raw)
In-Reply-To: <1231783995.6916.162.camel@goose.sun.com>

On Mon, Jan 12, 2009 at 10:13 AM, Roman V. Shaposhnik <rvs@sun.com> wrote:
> I'm trying to read up on fossil implementation so
> that I can sustain an intelligent conversation with
> Andrey ;-)
>
> Now, the paper "Fossil, an Archival File Server" is
> pretty good, but here's one simple question that
> I can't find an answer to: there's a pointer to
> the root of the filesystem block from the Super.
> But what is the data structure that is expected
> to reside in that block? I thought it was VtRoot,
> but looking at a hexdump of the fossil file -- it
> doesn't look like one.

Super.active is the block number of a VtDirType block:
a block containing a few (I think 3) VtEntry structs.

VtRoot is the top of a vac archive.  it too contains
a pointer to a block containing a few VtEntry structs.
you could think of VtRoot as the vac equivalent of
fossil's Super.

if you

  cd /sys/src/cmd/fossil
  mk 8.view
  8.view /dev/sdC0/fossil

you should get a graphical file system data structure
browser, though since it is not part of the default
build it may not need some work to make
it build again.

russ


  reply	other threads:[~2009-01-12 19:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12 18:13 Roman V. Shaposhnik
2009-01-12 19:06 ` Russ Cox [this message]
2009-01-14  2:03   ` Roman V. Shaposhnik

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=dd6fe68a0901121106h79474132ra2b461d8389ab259@mail.gmail.com \
    --to=rsc@swtch.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).