From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id pAH5G751008268 for ; Wed, 16 Nov 2011 23:16:07 -0600 Received: from song.cn.fujitsu.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 51030154D26F for ; Wed, 16 Nov 2011 21:16:04 -0800 (PST) Received: from song.cn.fujitsu.com (cn.fujitsu.com [222.73.24.84]) by cuda.sgi.com with ESMTP id 267qcEXvyraMIHte for ; Wed, 16 Nov 2011 21:16:04 -0800 (PST) Message-ID: <4EC4989D.9080107@cn.fujitsu.com> Date: Thu, 17 Nov 2011 13:16:13 +0800 From: WuBo MIME-Version: 1.0 Subject: [PATCH] change fallocate to xfs_io falloc References: <4EB20505.7070005@cn.fujitsu.com> In-Reply-To: <4EB20505.7070005@cn.fujitsu.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com, Ben Myers , Christoph Hellwig Thanks to Ben for pointing it that the fallocate maybe uninstall without checking it, and change fallocate to xfs_io as Christoph suggested. Signed-off-by: Wu Bo --- 274 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/274 b/274 index b658004..bcf5a11 100755 --- a/274 +++ b/274 @@ -46,6 +46,7 @@ _cleanup() _supported_fs generic _supported_os IRIX Linux _require_scratch +_require_xfs_io_falloc echo "------------------------------" echo "preallocation test" @@ -67,7 +68,7 @@ then exit fi -fallocate -n -o 4K -l 1M test >/dev/null 2>&1 +$XFS_IO_PROG -F -f -c 'falloc 4096 1m' test >/dev/null if [ $? -ne 0 ] then echo "fallocate file err" -- 1.7.3.1 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs