fstests: generic test for fallocate

Test extent pre-allocation (using fallocate) into a region that already has a
pre-allocated extent that ends beyond the file's size. Verify that if the fs
is unmounted immediately after, the file's size and content are not lost.

This is motivated by a minor issue found in btrfs where the second fallocate
wouldn't update the inode's i_size on disk, fixed by the following btrfs
patch: "Btrfs: add missing inode item update in fallocate()".

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Filipe Manana
2015-03-18 14:58:51 +11:00
committed by Dave Chinner
parent 74984c55c7
commit 57914b8850
3 changed files with 89 additions and 0 deletions
+1
View File
@@ -72,6 +72,7 @@
068 other auto freeze dangerous stress
069 rw udf auto quick
070 attr udf auto quick stress
071 auto quick prealloc
074 rw udf auto
075 rw udf auto quick
076 metadata rw udf auto quick stress