]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: Another fsync after adding hard link test
authorFilipe Manana <fdmanana@suse.com>
Sun, 15 Feb 2015 23:14:15 +0000 (10:14 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 15 Feb 2015 23:14:15 +0000 (10:14 +1100)
commit7e03b714f3f318bb99edff25d6665ae2572da00e
tree58b4d537dc6de0bb37c7f0a47e3d8784cd249799
parent5a3ce97e3ea8399b386f1eb286f2bfca9e393f41
generic: Another fsync after adding hard link test

This test is motivated by an fsync issue discovered in btrfs.
The issue was that we could lose file data, that was previously
fsync'ed successfully, if we end up adding a hard link to our
inode and then persist the fsync log later via an fsync of other
inode for example. This is similar to my previous test, except
that in this test the inode that ends up losing data was created
(with some data) in a transaction different from the one we made
an fsync.

The btrfs issue was fixed by the following linux kernel patch:

   Btrfs: fix fsync data loss after adding hard link to inode

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