]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
shared: test for fsync after adding xattrs 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)
commit4712000adad9664127d035de59f0f92d1d823413
tree41b99b698dfd7bccb14227786fd7584e73cb0512
parent3cc93641da2ca431ec2e82723e990b7686f28c04
shared: test for fsync after adding xattrs to a file

This test is motivated by an issue found in btrfs.

It test that after syncing the filesystem, adding many xattrs to a file,
syncing the filesystem again, writing to the file and then doing a fsync
against that file, all the xattrs still exists after a power failure.
That is, after the fsync log/journal is replayed, the xattrs still exist
and with the correct values.

The btrfs issue is fixed by the patch titled:

  "Btrfs: fix fsync xattr loss in the fast fsync path"

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