| To: | <linux-btrfs@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 2/3][RESEND] xfstests: make 218 support btrfs |
| From: | Liu Bo <liubo2009@xxxxxxxxxxxxxx> |
| Date: | Mon, 6 Feb 2012 16:27:48 +0800 |
| Cc: | <xfs@xxxxxxxxxxx>, <hch@xxxxxxxxxxxxx> |
| In-reply-to: | <1328516869-19474-1-git-send-email-liubo2009@xxxxxxxxxxxxxx> |
| References: | <1328516869-19474-1-git-send-email-liubo2009@xxxxxxxxxxxxxx> |
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> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH][RFC] XFS: Fix mem leak and possible NULL deref in xfs_setattr_nonsize(), Dave Chinner |
|---|---|
| Next by Date: | [PATCH 1/3][RESEND] xfstests: fix 251's cp -axT problem, Liu Bo |
| Previous by Thread: | [PATCH 1/3][RESEND] xfstests: fix 251's cp -axT problem, Liu Bo |
| Next by Thread: | [PATCH 3/3] xfstests: add btrfs online defragments QA test, Liu Bo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |