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>
This commit is contained in:
Filipe Manana
2018-05-11 16:43:43 +01:00
committed by Eryu Guan
parent 5fc65da0a6
commit fd0607faf2
3 changed files with 98 additions and 0 deletions
+1
View File
@@ -491,3 +491,4 @@
486 auto quick attr
487 auto quick
488 auto quick
489 auto quick attr