]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
218: support btrfs
authorLiu Bo <liubo2009@cn.fujitsu.com>
Mon, 6 Feb 2012 08:27:48 +0000 (16:27 +0800)
committerChristoph Hellwig <hch@lst.de>
Sat, 31 Mar 2012 20:14:06 +0000 (20:14 +0000)
Btrfs progs has a defragment tool, so we can test 218 on btrfs now.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
218
common.defrag

diff --git a/218 b/218
index 53d0b619e0e12023c99dd7fce624495cc35d24ef..77782c6b5ebd9388225fcc03fd0700081e039f55 100755 (executable)
--- 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
index 4850803d1b7cafebcd5a454c62b759b916057ccd..ea6c14ce5d85e90bdf463eca59cf450b54e2ca94 100644 (file)
@@ -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\""
        ;;