Patchwork [1/4] xfstests: check unwritten extent preallocation in 255

login
register
mail settings
Submitter Zheng Liu
Date Jan. 28, 2013, 7:32 a.m.
Message ID <1359358371-21411-2-git-send-email-wenqing.lz@taobao.com>
Download mbox | patch
Permalink /patch/216117/
State Not Applicable
Headers show

Comments

Zheng Liu - Jan. 28, 2013, 7:32 a.m.
From: Zheng Liu <wenqing.lz@taobao.com>

255 misses call _require_xfs_io_falloc to check whether a filesystem
supports fallocate(2) to preallocate unwritten extents or not.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Dave Chinner <david@fromorbit.com>
---
 255 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/255 b/255
index 0083963..700c3c0 100755
--- a/255
+++ b/255
@@ -1,7 +1,7 @@ 
 #! /bin/bash
 # FS QA Test No. 255
 #
-# Test Generic fallocate hole punching
+# Test Generic fallocate hole punching w/ unwritten extent
 #
 #-----------------------------------------------------------------------
 # Copyright (c) 2010 Red Hat.  All Rights Reserved.
@@ -47,6 +47,7 @@  trap "_cleanup ; exit \$status" 0 1 2 3 15
 _supported_fs generic 
 _supported_os Linux
 
+_require_xfs_io_falloc
 _require_xfs_io_falloc_punch
 _require_xfs_io_fiemap