xfs
[Top] [All Lists]

[PATCH v2] xfstests: check falloc in 285

To: xfs@xxxxxxxxxxx
Subject: [PATCH v2] xfstests: check falloc in 285
From: Zheng Liu <gnehzuil.liu@xxxxxxxxx>
Date: Sun, 12 May 2013 17:42:09 +0800
Cc: Zheng Liu <wenqing.lz@xxxxxxxxxx>, Rich Johnston <rjohnston@xxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=T+d7h1lTx9s9leM3NjceVBEm/mc8f54HQ4JLiEcMkak=; b=RANEn23LCwtiVgUsT/m3GrWmp+MeMqx0VdoJ9DSEuRAYeSqV1a1ishQQSAKSYWeToG P3VxccmS4jtpk44SPlkpkhNilTNe0QsRntZ6KbDh7SYSK5QVf5yzFm7SK1ztI3X5LMVB Mje9HlVd4KB9Ai2f3zw+R66F1jMS18UW5XSQn6Bnq1cgs0ZZJTvOkdgLD/0z+6OKn40v MEvVjoglzHXKGXSRIyQy/eyRCAwkk2dbxMMrluqbyWK8HHqt8PeoX5hQiWYDgY+4DVJo uyvpKjqM7tz7kNBEsIaWUyiGK1jwtQUACy9fBJSjKP3YDTdwbn5F0TWlp70LcxFh8o4h QT0w==
From: Zheng Liu <wenqing.lz@xxxxxxxxxx>

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@xxxxxxxxxx>
Cc: Rich Johnston <rjohnston@xxxxxxx>
---
 tests/generic/285 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/generic/285 b/tests/generic/285
index 22b4a08..d1a1baa 100644
--- a/tests/generic/285
+++ b/tests/generic/285
@@ -40,6 +40,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

<Prev in Thread] Current Thread [Next in Thread>