]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test for fsync after adding hard link to a file
authorFilipe Manana <fdmanana@suse.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
commit3cc93641da2ca431ec2e82723e990b7686f28c04
treeefd9bbd2acef3bdb5397c12f9a64f4ca59f8ed93
parentd48469086a21e2de9e13a6653c28101236ce1b31
generic: test for fsync after adding hard link to a file

This test is motivated by an issue found in btrfs.

It tests that after syncing the filesystem, adding a hard link to a file,
syncing the filesystem again, doing a write to the file that increases
its size and then doing a fsync against that file, durably persists the
data written to the file. That is, after log/journal replay, the data
is available.

The btrfs issue is fixed by the commit titled:

  "Btrfs: fix fsync data loss after append write"

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