]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic: test fsync of directory with renamed symlink
authorFilipe Manana <fdmanana@suse.com>
Mon, 9 May 2022 14:31:02 +0000 (15:31 +0100)
committerZorro Lang <zlang@kernel.org>
Mon, 9 May 2022 18:33:49 +0000 (02:33 +0800)
commit93db14575cd0b2fded108158cbb31c08177064f5
treea5cc847b20fe5a98591873308c2524038b7e2b0c
parent87cf32ad3fa234e3d5ec501e0f86516bef91d805
generic: test fsync of directory with renamed symlink

Test that if we fsync a directory, create a symlink inside it, rename
the symlink, fsync again the directory and then power fail, after the
filesystem is mounted again, the symlink exists with the new name and
it has the correct content.

This currently fails on btrfs, because the symlink ends up empty (which
is illegal on Linux), but it is fixed by kernel commit:

    d0e64a981fd841 ("btrfs: always log symlinks in full mode")

Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/690 [new file with mode: 0755]
tests/generic/690.out [new file with mode: 0644]