fstests: generic test for fsync after hole punching
authorFilipe Manana <fdmanana@suse.com>
Mon, 16 Nov 2015 21:41:18 +0000 (08:41 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 16 Nov 2015 21:41:18 +0000 (08:41 +1100)
commit71f68b47e16bdcfbacaeeaf1e228e05d17a3ae6f
treeac87c1c61c2fb1d9b45739c991b641a5607b07a2
parent727d47730d2eeaea233d63e17396a7ef5adbd21b
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>
tests/generic/177 [new file with mode: 0755]
tests/generic/177.out [new file with mode: 0644]
tests/generic/group