btrfs: test newly supported cases of cloning inline extents
authorFilipe Manana <fdmanana@suse.com>
Wed, 19 Feb 2020 14:06:41 +0000 (14:06 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 23 Feb 2020 14:23:15 +0000 (22:23 +0800)
commit6f7ef01037d23ceb52f4bef88866f2f27e42a23a
treea044093de74be211a4dd1726121413461cf62738
parentdd0bcdadfed162aa595da33620033f4356fb451e
btrfs: test newly supported cases of cloning inline extents

Test several scenarios of cloning operations where the source range
includes inline extents. They used to not be supported on btrfs
because their implementation was not straightforward, and therefore
these operations used to fail with errno EOPNOTSUPP on older
kernels.

This currently fails on any released kernel. It passes only when the
patch with the following subject is applied:

  "Btrfs: implement full reflink support for inline extents"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/205 [new file with mode: 0755]
tests/btrfs/205.out [new file with mode: 0644]
tests/btrfs/group