]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test file fsync after rename operation
authorFilipe Manana <fdmanana@suse.com>
Fri, 19 Feb 2016 01:15:33 +0000 (12:15 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 19 Feb 2016 01:15:33 +0000 (12:15 +1100)
commite2d866668a98af4cd47cd6913418e410cd80aa93
treea4fd7e5c3dde97980ed9d345651160bb4ca23f26
parent72da52702a4b5bea1170aed791893487d0748566
generic: test file fsync after rename operation

Test that if we have a file F1 with two links, one in a directory A and
the other in directory B, if we remove the link in directory B, move some
other file F2 from directory B into directory C, fsync inode F1, power
fail and remount the filesystem, file F2 exists and is located only in
directory C.

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

   "Btrfs: fix file loss on log replay after renaming a file and fsync"

Tested against ext3, ext4, xfs, f2fs and reiserfs.

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