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>
. ./common.defrag
# real QA test starts here
-_supported_fs xfs ext4
+_supported_fs xfs ext4 btrfs
_supported_os Linux
_setup_testdir
ext4|ext4dev)
DEFRAG_PROG=/usr/bin/e4defrag
;;
+ btrfs)
+ DEFRAG_PROG="$BTRFS_UTIL_PROG filesystem defragment"
+ ;;
*)
_notrun "defragmentation not supported for fstype \"$FSTYP\""
;;