fstests: generic test for fsync after hole punching

Test that a file fsync works after punching a hole for the same file
range multiple times, and that after log/journal replay the file's
content and layout are correct.

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

  "Btrfs: fix hole punching when using the no-holes feature"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Filipe Manana
2015-11-17 08:41:18 +11:00
committed by Dave Chinner
parent 727d47730d
commit 71f68b47e1
3 changed files with 122 additions and 0 deletions
+1
View File
@@ -179,6 +179,7 @@
174 auto quick clone
175 clone_stress
176 clone_stress
177 auto quick prealloc metadata
184 metadata auto quick
192 atime auto
193 metadata auto quick