xfs
[Top] [All Lists]

[PATCH] Xfstest: make 218 support btrfs

To: <linux-btrfs@xxxxxxxxxxxxxxx>
Subject: [PATCH] Xfstest: make 218 support btrfs
From: Liu Bo <liubo2009@xxxxxxxxxxxxxx>
Date: Mon, 16 Jan 2012 18:21:56 +0800
Cc: <xfs@xxxxxxxxxxx>, <hch@xxxxxxxxxxxxx>
Btrfs progs has a defragment tool, so we can test 218 on btrfs now.

Signed-off-by: Liu Bo <liubo2009@xxxxxxxxxxxxxx>
---
 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

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Xfstest: make 218 support btrfs, Liu Bo <=