From: Liu Bo Date: Mon, 6 Feb 2012 08:27:48 +0000 (+0800) Subject: 218: support btrfs X-Git-Tag: v2022.05.01~3610 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1aab95f5b2ddf8899b72128673482fde9427cc69;p=xfstests-dev.git 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 --- 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\"" ;;