]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: generic/315, verify preallocated disk space is released per truncate
authorJie Liu <jeff.liu@oracle.com>
Mon, 1 Jul 2013 10:29:19 +0000 (18:29 +0800)
committerBen Myers <bpm@sgi.com>
Fri, 19 Jul 2013 22:16:27 +0000 (17:16 -0500)
commit6fe0ad6fafd76ef3d5b01639f22b747f4a317b63
treeeccd1cb82f378786d37eaaa806e288b6dd1bc63a
parentb7ff5113a77df43da3d275556db4889fa6d761c8
xfstests: generic/315, verify preallocated disk space is released per truncate

Introduce generic test 315 to verify if the disk space is
released after truncating a preallocated file back to the
old smaller size.  Before Linux-3.10, Btrfs/OCFS2 test
failed in this case.

The test file is fallocated with FALLOC_FL_KEEP_SIZE option.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
tests/generic/315 [new file with mode: 0644]
tests/generic/315.out [new file with mode: 0644]
tests/generic/group