btrfs: regression test for file range cloning
authorFilipe Manana <fdmanana@suse.com>
Thu, 14 May 2015 10:27:53 +0000 (20:27 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 14 May 2015 10:27:53 +0000 (20:27 +1000)
commit2ba510dc7500114313941634f029c34baf504abf
treef6208bbc617cbf8da9b99cd59c10673cb3615630
parentc5223b9294c5df1d4fd774a99688c9bf9b16eb02
btrfs: regression test for file range cloning

Test btrfs file range cloning with the same file as a source and
destination.

This tests a specific scenario where the extent layout of the file
confused the clone ioctl implementation making it return -EEXIST to
userspace. This issue was fixed by the following linux kernel patch:

   Btrfs: fix range cloning when same inode used as source and destination

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/093 [new file with mode: 0755]
tests/btrfs/093.out [new file with mode: 0644]
tests/btrfs/group