[Top] [All Lists]

[PATCH] change fallocate to xfs_io falloc

To: linux-fsdevel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, Ben Myers <bpm@xxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: [PATCH] change fallocate to xfs_io falloc
From: WuBo <wu.bo@xxxxxxxxxxxxxx>
Date: Thu, 17 Nov 2011 13:16:13 +0800
In-reply-to: <4EB20505.7070005@xxxxxxxxxxxxxx>
References: <4EB20505.7070005@xxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100921 Fedora/3.1.4-1.fc14 Thunderbird/3.1.4
Thanks to Ben for pointing it that the fallocate maybe uninstall 
without checking it, and change fallocate to xfs_io as Christoph

Signed-off-by: Wu Bo <Wu.Bo@xxxxxxxxxxxxxx>
 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
 echo "------------------------------"
 echo "preallocation test"
@@ -67,7 +68,7 @@ then
-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 ]
        echo "fallocate file err"

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