btrfs: add a test for fsync of file with prealloc extents crossing eof

Test that if we fsync a file with prealloc extents that start before and
after the file's size, we don't end up with missing parts of the extents
and implicit file holes after a power failure. Test both without and with
the NO_HOLES feature.

It is fixed commit f135cea30de5 ("btrfs: fix partial loss of
prealloc extent past i_size after fsync")

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
2020-04-21 11:25:39 +01:00
committed by Eryu Guan
parent 4590ee0ad3
commit 10aa5e2904
3 changed files with 123 additions and 0 deletions
+1
View File
@@ -213,3 +213,4 @@
208 auto quick subvol
209 auto quick log
210 auto quick qgroup snapshot
211 auto quick log prealloc