linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: David Howells <dhowells@redhat.com>
Cc: jhutz@cmu.edu, Chris Mason <clm@fb.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
	"simonxwilkinson@gmail.com" <simonxwilkinson@gmail.com>,
	"jaltman@your-file-system.com" <jaltman@your-file-system.com>,
	"openafs-devel@openafs.org" <openafs-devel@openafs.org>
Subject: Re: [OpenAFS-devel] Re: What is needed to build an AFS fileserver on top of BTRFS?
Date: Tue, 17 Dec 2013 13:42:28 -0500	[thread overview]
Message-ID: <1387305748.25257.34.camel@destiny.pc.cs.cmu.edu> (raw)
In-Reply-To: <17653.1387302045@warthog.procyon.org.uk>

On Tue, 2013-12-17 at 17:40 +0000, David Howells wrote:
> Chris Mason <clm@fb.com> wrote:
> 
> > Hmmm, what exactly are vnodes?  Could we put them in xattrs?
> 
> vnode numbers are AFS's equivalent of inode numbers.  Since they're one per
> file, they could be the object filename.

Yes, in fact, the volume, vnode number, uniqifier, and DV are
effectively the "name" the fileserver uses for the underlying inode.
Note that if the fileserver is maintaining the vnode indices, then you
don't actually _need_ to store a uniqifier for normal operation, because
at any given time, a volume can contain at most one vnode with a
particular vnode number, and that vnode's uniqifier is stored in the
index.  The uniqifier is used on-the-wire to distinguish different files
that existed at different points in time with the same vnode number.

> Probably there would have to be a table of {vnode,latest_uniquifier} as the
> uniquifier must still go up even if the vnode is unused for a while, so there
> could also be a table of {vnode,btrfs_file}.

No, you don't actually  have to do this.  The OpenAFS fileserver
maintains a single uniqifier for an entire volume, and simply increments
it every time a vnode is created.

-- Jeff



  reply	other threads:[~2013-12-17 19:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17 16:53 What is needed to build an AFS fileserver on top of BTRFS? David Howells
2013-12-17 17:07 ` Chris Mason
2013-12-17 17:20 ` Hugo Mills
2013-12-17 17:40 ` David Howells
2013-12-17 18:42   ` Jeffrey Hutzelman [this message]
2013-12-17 17:47 ` David Howells
2013-12-17 18:45   ` [OpenAFS-devel] " Jeffrey Hutzelman

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=1387305748.25257.34.camel@destiny.pc.cs.cmu.edu \
    --to=jhutz@cmu.edu \
    --cc=clm@fb.com \
    --cc=dhowells@redhat.com \
    --cc=jaltman@your-file-system.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=openafs-devel@openafs.org \
    --cc=simonxwilkinson@gmail.com \
    /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).