reflink: basic tests of the reflink and dedupe ioctls

Test the operation of the btrfs (and now xfs) reflink and dedupe
ioctls at various file offsets and with matching and nonmatching
files.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Darrick J. Wong
2015-11-17 08:39:24 +11:00
committed by Dave Chinner
parent 20d7bfad2d
commit cc8e860cc9
17 changed files with 1044 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
QA output created by 137
Create the original file blocks
fallocate half the file
Reflink block zero to the threes
Reflink block one to the fives
Dedupe block two to the sevens
Check block mappings
2ea37912bdbd71b9ed4734d3141cbe9c TEST_DIR/test-137/file1