218: support btrfs

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>
This commit is contained in:
Liu Bo
2012-02-06 16:27:48 +08:00
committed by Christoph Hellwig
parent 929221ba9b
commit 1aab95f5b2
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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
+3
View 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\""
;;