From 1aab95f5b2ddf8899b72128673482fde9427cc69 Mon Sep 17 00:00:00 2001 From: Liu Bo Date: Mon, 6 Feb 2012 16:27:48 +0800 Subject: [PATCH] 218: support btrfs Btrfs progs has a defragment tool, so we can test 218 on btrfs now. Signed-off-by: Liu Bo Signed-off-by: Christoph Hellwig --- 218 | 2 +- common.defrag | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/218 b/218 index 53d0b619..77782c6b 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 4850803d..ea6c14ce 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\"" ;; -- 2.39.5