]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test that fiemap reports extent as not shared after deleting file
authorFilipe Manana <fdmanana@suse.com>
Mon, 31 Oct 2022 11:11:20 +0000 (11:11 +0000)
committerZorro Lang <zlang@kernel.org>
Thu, 3 Nov 2022 05:47:56 +0000 (13:47 +0800)
commitcea2bae85f1d4b5b9d827ef5c178be64c9a1b01b
treeabf82623ab7433bb35365ebe65b391ec2be761d8
parent2450821c9b151a98491a078aae921e22a61cff0c
btrfs: test that fiemap reports extent as not shared after deleting file

Test that if we have two files with shared extents, after removing one of
the files, if we do a fiemap against the other file, it does not report
extents as shared anymore.

This exercises the processing of delayed references for data extents in
the backref walking code, used by fiemap to determine if an extent is
shared.

This used to fail until very recently and was fixed by the following
kernel commit that landed in 6.1-rc2:

  4fc7b5722824 (""btrfs: fix processing of delayed data refs during backref walking")

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/279 [new file with mode: 0755]
tests/btrfs/279.out [new file with mode: 0644]