Btrfs progs has a defragment tool, so we can test 218 on btrfs now.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
---
218 | 2 +-
common.defrag | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/218 b/218
index 53d0b61..77782c6 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 4850803..ea6c14c 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\""
;;
--
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html