Files
apfstests/tests/generic/489.out
T
Filipe Manana fd0607faf2 generic: test for fsync of file with xattrs
Test that xattrs are not lost after calling fsync multiple times
with a filesystem commit in between the fsync calls.

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

  Btrfs: fix xattr loss after power failure

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2018-05-16 10:30:24 +08:00

12 lines
240 B
Plaintext

QA output created by 489
File xattrs after power failure:
# file: SCRATCH_MNT/foobar
user.xa1="qwerty"
user.xa2="hello world"
user.xa3="test"
File data after power failure:
0000000 ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea
*
0200000