Re: [RFC] Systemcall for offline deduplication

2012-10-26 Thread Gabriel
>> As for online dedupe (which seems useful for reducing writes), would it >> be useful if one could, given a write request, compare each of the >> dirty pages in that request against whatever else the fs has loaded in >> the page cache, and try to dedupe against that? We could probably >> speed u

Re: [RFC] Systemcall for offline deduplication

2012-10-26 Thread Gabriel
On Thu, 25 Oct 2012 23:26:14 -0700, Darrick J. Wong wrote: >> Now, here's my proposal for fixing that: >> A BTRFS_IOC_SAME_RANGE ioctl would be ideal. Takes two file >> descriptors, two offsets, one length, does some locking, checks that >> the ranges are identical (returns EINVAL if not), and defe

Re: [RFC] Systemcall for offline deduplication

2012-10-25 Thread Darrick J. Wong
On Wed, Oct 17, 2012 at 11:39:42AM +, Gabriel wrote: > On Mon, 15 Oct 2012 22:15:16 +0200, David Sterba wrote: > > On Mon, Oct 15, 2012 at 07:09:23PM +0200, Bob Marley wrote: > >> I would really appreciate a systemcall (or ioctl or the like) to allow > >> deduplication of a block of a file agai

[RFC] Systemcall for offline deduplication

2012-10-17 Thread Gabriel
On Mon, 15 Oct 2012 22:15:16 +0200, David Sterba wrote: > On Mon, Oct 15, 2012 at 07:09:23PM +0200, Bob Marley wrote: >> 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