* [PATCH 2/2] xfstests: Add JFS support to _scratch_mkfs_sized
@ 2013-09-06 20:59 Michael L. Semon
0 siblings, 0 replies; only message in thread
From: Michael L. Semon @ 2013-09-06 20:59 UTC (permalink / raw)
To: xfs-oss
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@gmail.com>
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
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-06 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 20:59 [PATCH 2/2] xfstests: Add JFS support to _scratch_mkfs_sized Michael L. Semon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.