xfs
[Top] [All Lists]

[PATCH] Xfstests: make _scratch_mkfs_sized work for btrfs

To: xfs@xxxxxxxxxxx
Subject: [PATCH] Xfstests: make _scratch_mkfs_sized work for btrfs
From: Josef Bacik <josef@xxxxxxxxxx>
Date: Tue, 30 Nov 2010 16:50:39 -0500
This patch simply makes _scratch_mkfs_sized work right for btrfs.  I've run a
few of the tests that use _scratch_mkfs_sized (204 and 226) and everything seems
to work right now.  Thanks,

Signed-off-by: Josef Bacik <josef@xxxxxxxxxx>
---
 common.rc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/common.rc b/common.rc
index 459bdf5..58e7318 100644
--- a/common.rc
+++ b/common.rc
@@ -329,6 +329,9 @@ _scratch_mkfs_sized()
     ext2|ext3|ext4)
        /sbin/mkfs.$FSTYP $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks
        ;;
+     btrfs)
+       /sbin/mkfs.$FSTYP $MKFS_OPTIONS $SCRATCH_DEV -b $fssize
+       ;;
     *)
        _notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized"
        ;;
-- 
1.6.6.1

<Prev in Thread] Current Thread [Next in Thread>