From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liu Bo Subject: [PATCH 2/3][RESEND] xfstests: make 218 support btrfs Date: Mon, 6 Feb 2012 16:27:48 +0800 Message-ID: <1328516869-19474-2-git-send-email-liubo2009@cn.fujitsu.com> References: <1328516869-19474-1-git-send-email-liubo2009@cn.fujitsu.com> Cc: , To: Return-path: In-Reply-To: <1328516869-19474-1-git-send-email-liubo2009@cn.fujitsu.com> List-ID: Btrfs progs has a defragment tool, so we can test 218 on btrfs now. Signed-off-by: Liu Bo --- 218 | 2 +- common.defrag | 3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/218 b/218 index 53d0b61..77782c6 100755 --- a/218 +++ b/218 @@ -44,7 +44,7 @@ _cleanup() . ./common.defrag # real QA test starts here -_supported_fs xfs ext4 +_supported_fs xfs ext4 btrfs _supported_os Linux _setup_testdir diff --git a/common.defrag b/common.defrag index 4850803..ea6c14c 100644 --- a/common.defrag +++ b/common.defrag @@ -29,6 +29,9 @@ _require_defrag() ext4|ext4dev) DEFRAG_PROG=/usr/bin/e4defrag ;; + btrfs) + DEFRAG_PROG="$BTRFS_UTIL_PROG filesystem defragment" + ;; *) _notrun "defragmentation not supported for fstype \"$FSTYP\"" ;; -- 1.6.5.2