fstests: btrfs: Check if fallocate re-truncates page beyond EOF
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 14 Oct 2015 03:19:33 +0000 (14:19 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 14 Oct 2015 03:19:33 +0000 (14:19 +1100)
commit08a516f9795d43cb46b0a475ef26e1a728b7ebfc
tree8b45a58661542202950ffc8051c9bf3c26106122
parentcef2e7a5839721ce9dd96ebca6154e75ca8e2d3d
fstests: btrfs: Check if fallocate re-truncates page beyond EOF

Even the fallocate range doesn't cover the last page of a file, btrfs
will still re-truncate the last page.

Such behavior is completely duplicated and unneeded, and fixed by the
following kernel patch:

btrfs: Avoid truncate tailing page if fallocate range doesn't exceed
inode size

Add this test case to check that malfunction.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/107 [new file with mode: 0755]
tests/btrfs/107.out [new file with mode: 0644]
tests/btrfs/group