linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Systemcall for offline deduplication
@ 2012-10-15 17:09 Bob Marley
  2012-10-15 20:15 ` David Sterba
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Marley @ 2012-10-15 17:09 UTC (permalink / raw)
  To: linux-btrfs

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-26 16:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 17:09 Systemcall for offline deduplication Bob Marley
2012-10-15 20:15 ` 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

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).