]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test fiemap reports extent as shared after cloning it
authorFilipe Manana <fdmanana@suse.com>
Tue, 11 Oct 2022 12:22:03 +0000 (13:22 +0100)
committerZorro Lang <zlang@kernel.org>
Sat, 15 Oct 2022 04:41:35 +0000 (12:41 +0800)
commitfa7644ccaa149b0209b349c5940460bb119c1f9c
treecf6566cde56324204230a2b34e8ff493b91db4b6
parent31a16db46b73a974f96523ac71d5e1100fbfa753
generic: test fiemap reports extent as shared after cloning it

Test that if we have two consecutive extents and only one of them is
cloned, then fiemap correctly reports which one is shared and reports
the other as not shared.

This currently fails on btrfs for all kernel releases, but is fixed by
a kernel patch that landed in Linus' tree last week:

  ac3c0d36a2a2f7 ("btrfs: make fiemap more efficient and accurate reporting extent sharedness")

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