]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test fiemap on large file with extents shared through a snapshot
authorFilipe Manana <fdmanana@suse.com>
Fri, 7 Oct 2022 13:53:34 +0000 (14:53 +0100)
committerZorro Lang <zlang@kernel.org>
Sat, 8 Oct 2022 11:20:25 +0000 (19:20 +0800)
commit8088eb0a46cc6261cd1176e6c488760acc2fce78
treec4cddb3c0a4652189ef296aec7d3c17a5721a3bc
parentdcf2ada66e2dcaf9d3724fb5456d0257eb01a555
btrfs: test fiemap on large file with extents shared through a snapshot

Verify that fiemap correctly reports the sharedness of extents for a file
with a very large number of extents, spanning many b+tree leaves in the fs
tree, and when the file's subvolume was snapshoted.

Currently this passes on all kernel releases and its purpose is to prevent
and detect regressions in the future, as this actually happened during
recent development on the btrfs' fiemap related code. With this test we
now have better coverage for fiemap when a file is shared through a
snapshot.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/276 [new file with mode: 0755]
tests/btrfs/276.out [new file with mode: 0644]