]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test fsync after adding a link and moving other inode
authorFilipe Manana <fdmanana@suse.com>
Mon, 9 May 2016 00:45:20 +0000 (10:45 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 9 May 2016 00:45:20 +0000 (10:45 +1000)
commit31247b3f9c4407f90e07c19a7fec41f6b2a5ec48
treea24631f37645b57b907abb7d54b7766805278016
parent9cafe2a12da367b50778e4af844cb6b80be06808
generic: test fsync after adding a link and moving other inode

Test that if we create a hard link for a file F in some directory A,
then move some directory or file B from its parent directory C into
directory A, fsync file F, power fail and mount the filesystem, the
directory/file B is located only at directory A and both links for
file F exist.

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

  Btrfs: fix for incorrect directory entries after fsync log replay

Tested against ext3/4, xfs, reiserfs and f2fs.

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