fstests: generic test for fallocate
authorFilipe Manana <fdmanana@suse.com>
Wed, 18 Mar 2015 03:58:51 +0000 (14:58 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 18 Mar 2015 03:58:51 +0000 (14:58 +1100)
commit57914b885044961fbd4f945e59005fa18febf73b
tree92f7a720760df96f909a85ed645bf2951668ca6f
parent74984c55c7c09b40eb97426dd77e98a881c7e273
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>
tests/generic/071 [new file with mode: 0755]
tests/generic/071.out [new file with mode: 0644]
tests/generic/group