[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: proposed: move FSFS protorevs out of the transactions dir

From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-12-26 04:14:16 CET

On Dec 25, 2007 6:01 PM, Branko ╚ibej <brane@xbc.nu> wrote:
> David Glasser wrote:
> > In already-bumped FSFS version 3, store the protorev and its lock
> > separately from the rest of the transaction metadata, to make it easy
> > for administrators to put the non-protorev metadata on a different
> > filesystem from the immutable filesystem.
> >
> Wouldn't doing that change an atomic rename to a non-atomic cross-device
> move?

Actually, avoiding that is the point :-)

It's already the case that the move-into-place code in FSFS checks for
a cross-device error, and does a copy instead in that case. Note,
though, that the "copy" is actually "copy to temporary file, then
atomically rename".

However, the point here is I want to make it possible to store the txn
metadata that *doesn't* get atomically moved on a different device,
and leave the proto-rev on the same device as the revs. The use case
I'm imagining would be to make db/transactions/ a symlink to local
disk, but leave db/txn-protorevs/ on the same device as db/revs/.


David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/
Received on Wed Dec 26 04:14:27 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.