]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test for truncating a file into the middle of a hole
authorFilipe Manana <fdmanana@suse.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
commit43b3882db9a947bf3c6a9e40539938d2efe930c6
tree0cb1aaeeb9d545c9e5af2bb85a98b59aefa0128a
parent6733157f0fac8df99c90a2ef3e40e79fd271128e
generic: test for truncating a file into the middle of a hole

Test that after truncating a file into the middle of a hole causes the
new size of the file to be persisted after a clean unmount of the
filesystem (or after the inode is evicted). This is for the case where
all the data following the hole is not yet durably persisted, that is,
that data is only present in the page cache.

This test is motivated by an issue found in btrfs, which got fixed by
the patch titled:

  "Btrfs: fix shrinking truncate when the no_holes feature is enabled"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/098 [new file with mode: 0755]
tests/generic/098.out [new file with mode: 0644]
tests/generic/group