generic: test dir fsync after deleting dentry post eviction of its inode
authorFilipe Manana <fdmanana@suse.com>
Wed, 19 Jun 2019 12:06:08 +0000 (13:06 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 23 Jun 2019 13:20:25 +0000 (21:20 +0800)
commitc132cd4de91b634c67158f5295a940a9a0f8f8bd
tree66240c08dd01008889a591bdcaa4945d41c3cb9b
parent03a2da5879c08619304f396c9cf4b84ee9e416ff
generic: test dir fsync after deleting dentry post eviction of its inode

Test that if we fsync a file, evict its inode, unlink it and then fsync
its parent directory, after a power failure the file does not exists.

This is motivated by a bug found in btrfs, which is fixed by the following
patch for the linux kernel:

 "Btrfs: fix fsync not persisting dentry deletions due to inode evictions"

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/557 [new file with mode: 0755]
tests/generic/557.out [new file with mode: 0644]
tests/generic/group