]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test fsync of file with no more hard links
authorFilipe Manana <fdmanana@suse.com>
Tue, 25 Mar 2025 12:24:40 +0000 (12:24 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 28 Mar 2025 01:05:05 +0000 (09:05 +0800)
commit6542628fc958a0acc58f764659ee6680637a005f
treeefeeb3383ef73acaa8813d44607aa1056cbe08d8
parent8893b54c0a60816a7c2966f28bcdedb002db7f4f
generic: test fsync of file with no more hard links

Test that if we fsync a file that has no more hard links, power fail and
then mount the filesystem, after the journal/log is replayed, the file
doesn't exists anymore.

This exercises a bug recently found and fixed by the following patch for
the linux kernel:

   btrfs: fix fsync of files with no hard links not persisting deletion

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