btrfs: add test for multiple fsync with adjacent preallocated extents

Test a scenario where we do several partial writes into multiple
preallocated extents across two transactions and with several fsyncs
in between. The goal is to check that the fsyncs succeed.

Currently the last fsync fails with an -EIO error, and it aborts the
current transaction. This issue is fixed by a patch with the following
subject:

  "btrfs: fix fsync failure and transaction abort after writes to prealloc extents"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Filipe Manana
2021-05-24 11:37:21 +01:00
committed by Eryu Guan
parent ee7383c5f5
commit 2605c135e1
3 changed files with 203 additions and 0 deletions
+1
View File
@@ -242,3 +242,4 @@
237 auto quick zone balance
238 auto quick seed trim
239 auto quick log
240 auto quick prealloc log