xfstests: generic/315, verify preallocated disk space is released per truncate
PATCH 1/1 xfstests: generic/315, verify preallocated disk space is released per truncate
From: Jie Liu <[email protected]>
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.
--- tests/generic/315 | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ tests/generic/315.out | 2 ++ tests/generic/group | 1 + 3 files changed, 82 insertions(+) mode change 100644 => 100755 tests/generic/311 create mode 100755 tests/generic/315 create mode 100644 tests/generic/315.out
tests/generic/311 +0 -0
tests/generic/315 new file +79 -0
79 lines not on this page · raw message
tests/generic/315.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 315 +Slience is golden
tests/generic/group +1 -0
@@ -115,3 +115,4 @@ 310 auto 311 auto metadata log 312 auto quick prealloc enospc +315 auto quick rw prealloc
Signature · 6 lines
1.7.9.5 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 10 lines · Jeff Liu
From: Jie Liu <[email protected]>
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_SIZEoption.Signed-off-by Jie Liu <[email protected]>
Looks good.
Applied.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs