From mboxrd@z Thu Jan 1 00:00:00 1970 From: WuBo Subject: [PATCH] change fallocate to xfs_io falloc Date: Thu, 17 Nov 2011 13:16:13 +0800 Message-ID: <4EC4989D.9080107@cn.fujitsu.com> References: <4EB20505.7070005@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com, Ben Myers , Christoph Hellwig Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:53062 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751148Ab1KQFQK (ORCPT ); Thu, 17 Nov 2011 00:16:10 -0500 In-Reply-To: <4EB20505.7070005@cn.fujitsu.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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