generic: test fsync after moving files across directories
authorFilipe Manana <fdmanana@suse.com>
Wed, 1 Apr 2015 00:31:03 +0000 (11:31 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 1 Apr 2015 00:31:03 +0000 (11:31 +1100)
commit672a9f0e12e2f0648af4f2d5e4bca122c743bd81
tree88ae39cf5933ad4cbf37d230d45cb8a110a7f132
parentcbc98cdd80522e808f4fb168633120022367c437
generic: test fsync after moving files across directories

Test file A fsync after moving one other unrelated file B between
directories and fsyncing B's old parent directory before fsyncing
the file A. Check that after a crash all the file A data we fsynced
is available.

This test is motivated by an issue discovered in btrfs which caused
the file data to be lost (despite fsync returning success to user
space). That btrfs bug is fixed by the following linux kernel patch:

   Btrfs: fix data loss in the fast fsync path

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