Files
apfstests/tests/btrfs/093.out
T
Filipe Manana 2ba510dc75 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>
2015-05-14 20:27:53 +10:00

21 lines
1.0 KiB
Plaintext

QA output created by 093
Testing without the no-holes feature
wrote 131072/131072 bytes at offset 131072
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File digest after clone operations using same file as source and destination
cc3cc722ad761bd10488a0f1232ead19 SCRATCH_MNT/foo
wrote 131072/131072 bytes at offset 131072
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File digest after clone operations using different files as source and destination
cc3cc722ad761bd10488a0f1232ead19 SCRATCH_MNT/foo2
Testing with the no-holes feature
wrote 131072/131072 bytes at offset 131072
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File digest after clone operations using same file as source and destination
cc3cc722ad761bd10488a0f1232ead19 SCRATCH_MNT/foo
wrote 131072/131072 bytes at offset 131072
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File digest after clone operations using different files as source and destination
cc3cc722ad761bd10488a0f1232ead19 SCRATCH_MNT/foo2