]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: add a test for fallocate+truncate
authorJosef Bacik <jbacik@fb.com>
Tue, 26 May 2015 02:51:57 +0000 (12:51 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 26 May 2015 02:51:57 +0000 (12:51 +1000)
commit1c22274b8c6b5706e9a83f5097a1ca8060621d3b
tree7fd604557a12f9ac7c3dd4a6536ab44982e70220
parentf4eee51260084e6c56a4dd59245faa1bf3ec4b86
generic: add a test for fallocate+truncate

There was some confused about what the fs was supposed to do when you truncate
at i_size with preallocated space past i_size.  We decided on the following
things

1) truncate(i_size) will trim all blocks past i_size.
2) truncate(x) where x > i_size will not trim all blocks past i_size.

This test is to make sure we're all acting sanely.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/092 [new file with mode: 0644]
tests/generic/092.out [new file with mode: 0644]
tests/generic/group