[PATCH] xfstests: check falloc in 285

Zheng Liu gnehzuil.liu at gmail.com
Tue Mar 26 03:35:57 CDT 2013


From: Zheng Liu <wenqing.lz at taobao.com>

As linux 3.8, ext4 has supported the seek data/hole operation for
extent-based file and indirect-based file.  But for indirect-based file
it can not support the fallocate(2).  This causes test 285 to fail since
it assumes that all file systems which supports seek data/hole also
support fallocate.  So here we need to check it.

Signed-off-by: Zheng Liu <wenqing.lz at taobao.com>
---
 285 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/285 b/285
index a18fc71..8726b9e 100644
--- a/285
+++ b/285
@@ -41,6 +41,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _supported_fs generic
 _supported_os Linux
 
+_require_xfs_io_falloc
+
 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
 
 [ -x $here/src/seek_sanity_test ] || _notrun "seek_sanitfy_tester not built"
-- 
1.7.12.rc2.18.g61b472e



More information about the xfs mailing list