| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 2/2] xfstests: Add JFS support to _scratch_mkfs_sized |
| From: | "Michael L. Semon" <mlsemon35@xxxxxxxxx> |
| Date: | Fri, 06 Sep 2013 16:59:36 -0400 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=bJxbJcyRMtDimJ58ktkxFsxgX4vs9aN56OYBA9kguPs=; b=ybA2BE/3MmrVoSiTZtfZVwrQTFAIanGkttsSEBOeakEls4SAlYVePd8NSP9sVK18Zs E9IG19/37J6VBz8cme45TYv8jCwoO0eRKamTnUJZm3sEomQANJyeBTRymyrCcIuFV2S+ iTxzEd/LyGmR3mLJIxmcPrgoy55XdQm3/sNoT2NcYyYx8lhpMNDrKA2itcbAyOgnbV/h P8IVUG6cx+rCi1Cne1sgpX26LGOvcsL9e7/guw+uMTBgIUj5KuwBLgc63BDFOeMnYx2w koU8stH1aFkXnNFxZxOpacmoLeYRqMffDaNy2X47XmfTExtIfEpvGYGlOaiwVl5CwDjm JBFA== |
| User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
This code works, with a little bit of tinkering. I wanted to shovel
it off to another function but didn't know what to do with the
arguments. In particular, the number_of_blocks value has to come
after the dev name.
Thanks!
Michael
>From cb46931b9313d001813be459f829f551d955d781 Mon Sep 17 00:00:00 2001
From: "Michael L. Semon" <mlsemon35@xxxxxxxxx>
Date: Fri, 6 Sep 2013 05:50:05 -0400
Subject: [PATCH 2/2] xfstests: Add JFS support to _scratch_mkfs_sized
Add _scratch_mkfs_sized support for JFS. Calculations are here
due to a jfs_mkfs log calculation issue when the file system size
is smaller than the partition size. This issue is avoided by
specifying the log size (in megabytes) on the command line.
---
common/rc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/common/rc b/common/rc
index 191e9e5..58997d7 100644
--- a/common/rc
+++ b/common/rc
@@ -612,6 +612,15 @@ _scratch_mkfs_sized()
btrfs)
$MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV
;;
+ jfs)
+ _scratch_options mkfs
+ jfs_log_sized=`expr $fssize / 16777216`
+ if `expr $jfs_log_sized \> 128`; then
+ jfs_log_sized=128
+ fi
+ $MKFS_JFS_PROG -s $jfs_log_sized $SCRATCH_OPTIONS $MKFS_OPTIONS \
+ $SCRATCH_DEV `expr $fssize / 4096` > /dev/null
+ ;;
*)
_notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized"
;;
--
1.8.3.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/2] xfstests: Add JFS _scratch_mkfs external journal support, Michael L. Semon |
|---|---|
| Next by Date: | Re: [RFC PATCH 03/11] xfs: support the XFS_BTNUM_FINOBT free inode btree type, Dave Chinner |
| Previous by Thread: | [PATCH 1/2] xfstests: Add JFS _scratch_mkfs external journal support, Michael L. Semon |
| Next by Thread: | PARTNERSHIP, Dennis and Lorna Guitton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |