xfs
[Top] [All Lists]

[PATCH] xfstests: check falloc in 285

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: check falloc in 285
From: Zheng Liu <gnehzuil.liu@xxxxxxxxx>
Date: Tue, 26 Mar 2013 16:35:57 +0800
Cc: Zheng Liu <wenqing.lz@xxxxxxxxxx>
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=psKtZFzC6TwlCxRl6J5IJ8Qchw2qM24G2348ytliV4w=; b=1JIrL88DhvL9E3LBYyYEp0TlaylOhQ1ksWAsPHkWrJd18u+N85OAWUnnNWUiDAZUzB H+RvQb+epj0J01jS5eOk5ffqr0CMnO8sHtuMWoJhlPZoOwEz8I65+jmg680fVGitrGbE MUuBp+PsyulgNUb+4YmlCoI8x499mrO9wNsyUPbfxp7TVw9P/RZ6WqRCBpNROkzQW4Wf jiZQQC3EDFGqMmbeUTkgXeMArXrk2iFDp4WGo2pkPD/tGxA6CV7KbwQncHBghjgGZRNK F3AdjLj6mfx83x0hS2iqBl5UmB+vj8yTtd0DdsqRg1lF8+unVmtXkHFICCxUOqqWN+ea IwxQ==
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>
---
 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

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] xfstests: check falloc in 285, Zheng Liu <=