Skip to contentSkip to conversation

xfstests: generic/315, verify preallocated disk space is released per truncate

PATCH Applied Jeff Liu 2 participants 2 messages Jul 1, 2013 – Jul 19, 2013

lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

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
old mode 100644
new mode 100755
tests/generic/315 new file +79 -0

79 lines not on this page · raw message

tests/generic/315.out new file +2 -0
new file mode 100644
index 0000000..8414add
@@ -0,0 +1,2 @@
+QA output created by 315
+Slience is golden
tests/generic/group +1 -0
index bd443c1..30889bd 100644
@@ -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
Reviewed-by on v1 1/1 Applied
#1 lore raw
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_SIZE option.

Looks good.

Applied.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs