[Dirvish] btrfs support: v3 / "cow" option v1

Adrian von Bidder avbidder at fortytwo.ch
Fri Mar 4 21:28:10 UTC 2011

Wrong button ...

here it is. Against 1.2.1

On Friday 04 March 2011 22.24:46 Adrian von Bidder wrote:
> Heyho!
> I had a few moments to spare recently...
> Summary: support using btrfs snapshots instead of hardlinked rsync trees.
> Also uses the --inplace option to rsync, so for changed files only the
> modified parts will be duplicated. (Hmm. rsync doesn't use fallocate(2)
> to punch holes in files yet, I assume, so there's room for improvement
> here for cases where a piece of a file has been cut out, as in a video
> stream.)
> Also: a (first?) batch of patches that support data deduplication has
> been posted to the btrfs mailing list in January, so btrfs will be even
> more interesting in the medium future for those who use dirvish to
> backup a number of similar machines to a central backup machine. Not
> sure when this will be really available though...
> Change vs. the first versions: as was proposed in the original discussion
> of this, the "btrfs" option has now been renamed into "cow" (copy on
> write); supported values are 0 (default) and btrfs. Supporting other cow
> filesystems is left as an exercise to the reader.
> Status: while this is running here, I've only just written this code a
> few days ago, so some testing / feedback is welcome.
> Since I expect there are not that many users of this yet, no migration
> path for old vaults is provided, I didn't want to bloat the code with
> support code for stuff that wasn't even released. Just insert "cow:
> btrfs" into all summary files (and default.conf, of course) and you're
> fine.
> cheers
> -- vbi

The Free Software Foundation: The gang that couldn't price-fix straight!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cow-v1.patch
Type: text/x-patch
Size: 3550 bytes
Desc: not available
Url : http://www.dirvish.org/pipermail/dirvish/attachments/20110304/b19f7c8c/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://www.dirvish.org/pipermail/dirvish/attachments/20110304/b19f7c8c/attachment-0001.bin 

More information about the Dirvish mailing list