diff options
author | Mark Fasheh <mfasheh@suse.de> | 2013-08-06 22:42:51 +0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 16:05:00 +0400 |
commit | 416161db9b63e353a8fb79d1369779175102fca1 (patch) | |
tree | 60627f898b85d3173e83222d12fc9f677e84730e /fs/btrfs/send.c | |
parent | 4b384318a74e38eb248f74f9a92a700d2ce841f1 (diff) | |
download | linux-416161db9b63e353a8fb79d1369779175102fca1.tar.xz |
btrfs: offline dedupe
This patch adds an ioctl, BTRFS_IOC_FILE_EXTENT_SAME which will try to
de-duplicate a list of extents across a range of files.
Internally, the ioctl re-uses code from the clone ioctl. This avoids
rewriting a large chunk of extent handling code.
Userspace passes in an array of file, offset pairs along with a length
argument. The ioctl will then (for each dedupe) do a byte-by-byte comparison
of the user data before deduping the extent. Status and number of bytes
deduped are returned for each operation.
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Reviewed-by: Zach Brown <zab@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/send.c')
0 files changed, 0 insertions, 0 deletions