From: fsgqa Date: Sun, 1 Jun 2003 21:40:24 +0000 (+0000) Subject: QA test updates. X-Git-Tag: v1.1.0~977 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=204feb7d9dcf9588afb1b8a365bf933c79207324 QA test updates. Fix test so that it works with larger inode sizes also. --- diff --git a/031 b/031 index acd8c9c4..c7fd3794 100755 --- a/031 +++ b/031 @@ -81,6 +81,9 @@ _create_proto() total=$1 count=0 + # take inode size into account for non-shortform directories... + [ $total -gt 0 ] && total=`expr $total \* $isize / 512` + cat >$tmp.proto </dev/null 2>&1 +_scratch_mkfs_xfs $MKFSV1 >$tmp.mkfs0 2>&1 +_filter_mkfs <$tmp.mkfs0 >/dev/null 2>$tmp.mkfs +source $tmp.mkfs _check_repair echo "=== version 2, one entry (shortform)" _scratch_mkfs_xfs $MKFSV2 | _filter_mkfs >/dev/null 2>&1 diff --git a/common.rc b/common.rc index 581304cb..38e7f710 100644 --- a/common.rc +++ b/common.rc @@ -74,8 +74,10 @@ mount() _test_mount() { TEST_OPTIONS="" - [ -z "$TEST_RTDEV" ] || TEST_OPTIONS="$TEST_OPTIONS -ortdev=$TEST_RTDEV" - [ -z "$TEST_LOGDEV" ] || TEST_OPTIONS="$TEST_OPTIONS -ologdev=$TEST_LOGDEV" + [ "$USE_EXTERNAL" = yes -a ! -z "$TEST_RTDEV" ] && \ + TEST_OPTIONS="$TEST_OPTIONS -ortdev=$TEST_RTDEV" + [ "$USE_EXTERNAL" = yes -a ! -z "$TEST_LOGDEV" ] && \ + TEST_OPTIONS="$TEST_OPTIONS -ologdev=$TEST_LOGDEV" mount -t xfs $TEST_OPTIONS $* $TEST_DEV $TEST_DIR }