generic: test for file loss after mix of rename, fsync and inode eviction
authorFilipe Manana <fdmanana@suse.com>
Tue, 27 Jul 2021 10:24:59 +0000 (11:24 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 1 Aug 2021 10:12:33 +0000 (18:12 +0800)
commite52ceab66d76496a377372e58595a474187bc2bc
treefc66c0a5aa501eb926af74457944914d232f0a0d
parent80395bbcdb6baf149756414b223e1729f1690ee7
generic: test for file loss after mix of rename, fsync and inode eviction

Test that if we fsync a directory A, evict A's inode, move one file
from directory A to directory B, fsync some other inode that is not
directory A, B or any inode inside these two directories, and then
power fail, the file that was moved is not lost.

This currently fails on btrfs and is fixed by commit ecc64fab7d49
("btrfs: fix lost inode on log replay after mix of fsync, rename and
inode eviction")

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/640 [new file with mode: 0755]
tests/generic/640.out [new file with mode: 0644]