mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
31603fea80
Test that after a combination of file renames, linking and creating a new file with the old name of a renamed file, if we fsync the new file, after a power failure we are able to mount the filesystem and all file names correspond to the correct inodes. This test is motivated by a bug found in btrfs which is fixed by a patch for the linux kernel titled: "Btrfs: fix fsync after succession of renames of different files" The test passes on ext4, xfs and patched btrfs, however at least in a 5.0-rc5 linux kernel, it fails on f2fs. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>