[PATCH] Xfstests: make _scratch_mkfs_sized work for btrfs

Josef Bacik josef at redhat.com
Tue Nov 30 15:50:39 CST 2010


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 at redhat.com>
---
 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




More information about the xfs mailing list