]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test for fsync after adding hard links
authorFilipe Manana <fdmanana@suse.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
commit5b415d2be5a178632a33cd6ef54eeec85b08e6d8
tree5512e40c5f8ed1ef3977b0a31cfedc3eb2416082
parenta022d3128a45a1e47c4b2f3873c8ebf9483e6a7a
generic: test for fsync after adding hard links

Test that if we add hard links (in the same directory) to two files and
then fsync only one of the files, after the fsync log/journal is replayed
all the links exist and the filesystem metadata (directory and file
inodes) is in a consistent state.

This test is motivated by a bug found in btrfs that is fixed by linux
kernel patch titled:

  "Btrfs: fix stale directory entries after fsync log replay"

Verified against ext3/4, xfs, f2fs and reiserfs on a 4.1 linux kernel.

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