]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test a scenario of power failure after renames and fsyncs
authorFilipe Manana <fdmanana@suse.com>
Thu, 27 Nov 2025 18:17:44 +0000 (18:17 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 5 Dec 2025 07:46:17 +0000 (15:46 +0800)
commit7e5537c5ec3fe0209d916777db883514330e5f12
tree7b821144a8509d258bd2dd0a9e74a1cc13a8767b
parent1b37d45c4373fc359a5cf3be3f91d3e1ce9e09da
generic: test a scenario of power failure after renames and fsyncs

Test moving a directory to another location, create a file in the old
location of the directory and with the same name, fsync the file, then
move the file elsewhere and fsync again the file. After a power failure
we expect to be able to mount the fs and have the same content as before
the power failure.

This exercises a bug fixed by the following kernel patch for btrfs:

 "btrfs: don't log conflicting inode if it's a dir moved in the current transaction"

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