xfsqa: fix size specification for scratch mkfs

When making a specifically sized scratch filesystem, we need to
calculate the size rather than assigning the caclculation expression
to a variable and passing that into the _scratch_mkfs_sized
function. Currently sized filesystems are failing to be made and the
code is falling back to full sized filesystems so we are not testing
enospc issues correctly.

Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Dave Chinner
2010-03-06 11:24:38 +11:00
parent 56cc8b05d4
commit b2de346746
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ rm -f $seq.full
umount $SCRATCH_DEV >/dev/null 2>&1
echo "*** MKFS ***" >>$seq.full
echo "" >>$seq.full
let SIZE=50*1024*1024
SIZE=`expr 50 \* 1024 \* 1024`
_scratch_mkfs_sized $SIZE >>$seq.full 2>&1 \
|| _fail "mkfs failed"
_scratch_mount >>$seq.full 2>&1 \
+1 -1
View File
@@ -40,7 +40,7 @@ _supported_os Linux
_require_scratch
SIZE=104*1024*1024
SIZE=`expr 104 \* 1024 \* 1024`
_scratch_mkfs_sized $SIZE &> /dev/null
_scratch_mount
+1 -1
View File
@@ -320,7 +320,7 @@ _scratch_mkfs_sized()
fssize=$1
blocksize=$2
[ -z "$blocksize" ] && blocksize=4096
let blocks=$fssize/$blocksize
blocks=`expr $fssize / $blocksize`
case $FSTYP in
xfs)