linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bob Marley <bobmarley@shiftmail.org>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Systemcall for offline deduplication
Date: Mon, 15 Oct 2012 19:09:23 +0200	[thread overview]
Message-ID: <507C4343.6060305@shiftmail.org> (raw)

Hello all btrfs developers

I would really appreciate a systemcall (or ioctl or the like) to allow 
deduplication of a block of a file against a block of another file.
(ok if blocks need to be aligned to filesystem blocks)

So that if I know that bytes 32768...65536 of FileA  are identical to 
bytes 131072...163840 of FileB I can call that syscall to have the 
regions deduplicated one against the other atomically and with the 
filesystem running.
The syscall should presumably check that the regions are really equal 
and perform the deduplication atomically.

This would be the start for a lot of deduplication algorithms in userspace.
It would be a killer feature for backup systems.

Thank you,
Bob

             reply	other threads:[~2012-10-15 17:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15 17:09 Bob Marley [this message]
2012-10-15 20:15 ` Systemcall for offline deduplication David Sterba
2012-10-17 11:39   ` [RFC] " Gabriel
2012-10-26  6:26     ` Darrick J. Wong
2012-10-26 15:59       ` Gabriel
2012-10-26 16:21         ` Gabriel

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=507C4343.6060305@shiftmail.org \
    --to=bobmarley@shiftmail.org \
    --cc=linux-btrfs@vger.kernel.org \
    /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).