diff options
| author | Mark Fasheh <[email protected]> | 2013-08-06 11:42:51 -0700 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2013-09-01 08:05:00 -0400 |
| commit | 416161db9b63e353a8fb79d1369779175102fca1 (patch) | |
| tree | 60627f898b85d3173e83222d12fc9f677e84730e /tools/perf/scripts/python/bin | |
| parent | 4b384318a74e38eb248f74f9a92a700d2ce841f1 (diff) | |
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 <[email protected]>
Reviewed-by: Zach Brown <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions