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

Test that if we rename a directory, create a new file or directory that
has the old name of our former directory and is a child of the same
parent directory, fsync the new inode, power fail and mount the
filesystem, we see our first directory with the new name and no files
under it were lost.

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