]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test power failure after fsync and rename exchanging directories
authorFilipe Manana <fdmanana@suse.com>
Tue, 6 Jan 2026 12:59:05 +0000 (12:59 +0000)
committerZorro Lang <zlang@kernel.org>
Tue, 6 Jan 2026 13:21:13 +0000 (21:21 +0800)
commit8dad086a47019bf46a5b559efb382525324b9254
tree568e885a4a9982565718c1161c83900c22e44ceb
parent63a29724a85f1999e49bf0a9bf0d22643b6116e5
btrfs: test power failure after fsync and rename exchanging directories

Test renaming one directory over another one that has a subvolume inside
it and fsync a file in the other directory that was previously renamed.
We want to verify that after a power failure we are able to mount the
filesystem and it has the correct content (all renames visible).

This exercises a bug fixed by the following kernel commit:

  7ba0b6461bc4 ("btrfs: always detect conflicting inodes when logging inode refs")

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