]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test journaling after renaming fsynced file and fsync parent dir
authorFilipe Manana <fdmanana@suse.com>
Wed, 3 Dec 2025 17:38:14 +0000 (17:38 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 5 Dec 2025 07:46:17 +0000 (15:46 +0800)
commit3970e305333e58cdbaef3c5c2d3536f23d7d7192
tree8377be393eedbd804494df0df5e7e3d69183d69a
parent7e5537c5ec3fe0209d916777db883514330e5f12
generic: test journaling after renaming fsynced file and fsync parent dir

Test that if we fsync a file, create a directory in the same parent
directory of the file, add a file to the new directory, rename the
initial file and then fsync the parent directory of the first file, after
a power failure the new directory exists, with its new entry and the first
file has the new name and any data we wrote to it before its fsync.

This exercises a reported btrfs bug which is fixed by a patch with the
following subject:

  "btrfs: do not skip logging new dentries when logging a new name"

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