btrfs: test power fail after a ranged fsync when not using the no-holes feature

Test a scenario were we fsync a range of a file and have a power
failure.  We want to check that after a power failure and mounting
the filesystem, we do not end up with a missing file extent
representing a hole. This applies only when not using the NO_HOLES
feature.

This currently fails on btrfs but it is fixed by a patch for the kernel
that has the following subject:

  "Btrfs: fix missing file extent item for hole after ranged fsync"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Filipe Manana
2020-03-06 17:51:02 +00:00
committed by Eryu Guan
parent d116fe3774
commit 74278dc293
3 changed files with 95 additions and 0 deletions
+1
View File
@@ -211,3 +211,4 @@
206 auto quick log replay
207 auto rw raid
208 auto quick subvol
209 auto quick log