]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: add test for fsync after renaming file
authorFilipe Manana <fdmanana@suse.com>
Tue, 5 Apr 2016 01:47:55 +0000 (11:47 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 01:47:55 +0000 (11:47 +1000)
commitf02fe949113f35ae221ec1ab5c9959912f594bf4
tree0910b770b8c9c6db574854c63c006b6f7d9aba9c
parent5b1325530633774de84249224e42d67355f768ef
generic: add test for fsync after renaming file

Test that if we rename a file, create a new file that has the old name
of the other file and is a child of the same parent directory, fsync the
new inode, power fail and mount the filesystem, we do not lose the first
file and that file has the name it was renamed to.

This test is motivated by an issue found in btrfs which is fixed by the
following patch for the linux kernel:

  "Btrfs: fix file loss caused by fsync after rename and new inode"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/342 [new file with mode: 0644]
tests/generic/342.out [new file with mode: 0644]
tests/generic/group