]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test fsync against a removed directory
authorFilipe Manana <fdmanana@suse.com>
Thu, 9 Apr 2026 15:22:27 +0000 (16:22 +0100)
committerZorro Lang <zlang@kernel.org>
Mon, 13 Apr 2026 19:41:25 +0000 (03:41 +0800)
commitc4e03688706d008211c8bb9faeef8fbab3a45615
treee384ccef4714304aeef3d9414fc07c51aab0ed3c
parentf3e91c87aa9f1a5a4cea4270d1c22c6ba091f34a
generic: test fsync against a removed directory

Test that if we fsync a directory that became empty after removing it
and we have a power failure, we are able to mount the filesystem and the
directory does not exists anymore.

This exercises a bug found in btrfs which is fixed by the following patch:

  btrfs: fix missing last_unlink_trans update when removing a directory

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/unlink-fsync.c
tests/generic/792 [new file with mode: 0755]
tests/generic/792.out [new file with mode: 0644]