From: David Howells <dhowells@redhat.com>
To: Hugo Mills <hugo@carfax.org.uk>
Cc: dhowells@redhat.com, Simon Wilkinson <simonxwilkinson@gmail.com>,
jaltman@your-file-system.com,
"openafs-devel@openafs.org" <openafs-devel@openafs.org>,
linux-btrfs@vger.kernel.org, clm@fb.com
Subject: Re: What is needed to build an AFS fileserver on top of BTRFS?
Date: Tue, 17 Dec 2013 17:47:58 +0000 [thread overview]
Message-ID: <17945.1387302478@warthog.procyon.org.uk> (raw)
In-Reply-To: <20131217172002.GE11281@carfax.org.uk>
Hugo Mills <hugo@carfax.org.uk> wrote:
> > (1) 64-bit data version numbers that increase monotonically with
> > each write. Yes, this is likely to cause some performance
> > degredation as it introduces an ordering over data writes and
> > metadata writes to a file. Maybe writes can be batched to improve
> > performance?
>
> Do these have to be per-file? If not, then you might be able to get
> away with using the transid, which is a filesystem-global
> monotonically-increasing number.
Yes. If you send a write RPC op to the server, you get back the new version
number. If the new version number is not the old version number + 1 you know
there was a collision with a write from another client and you have to flush
your cache for that file and request a new "callback" (ie. a promise to notify
you if someone else changes the file).
> > (3) The ability to snapshot a filesystem to make backups and for
> > pushing to read-only volume servers.
>
> We have snapshots of subvolumes, but not the filesystem as a whole.
By "filesystem" I meant the current state of an AFS volume. Very likely this
would be represented by a BTRFS subvolume, if I understand it correctly. You
might have several AFS volumes represented within a BTRFS filesystem. They
would be manipulated independently.
> > (5) The ability to set the vnode number, vnode uniquifier and data
> > version number to specific values. Necessary to clone volumes
> > and restore volume dumps.
>
> What's a vnode meant to represent? I'm not familiar with the
> terminology.
AFS's equivalent of an inode with a 32-bit number representing it. See my
reply to Chris's question about the same thing.
David
next prev parent reply other threads:[~2013-12-17 17:48 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 ` [OpenAFS-devel] " Jeffrey Hutzelman
2013-12-17 17:47 ` David Howells [this message]
2013-12-17 18:45 ` 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=17945.1387302478@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=clm@fb.com \
--cc=hugo@carfax.org.uk \
--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).