From: grev Date: Wed, 19 Sep 2007 23:07:43 +0000 (+0000) Subject: b=12613 X-Git-Tag: v1_7_0_51~714 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f1a69fe5c6df0c9bc0e8e7ca9be96dc99daa56a8 b=12613 i=Adilger i=Nathan test_18 MDS_MKFS_OPTS fix; cfg/local.sh MKFSOPTS fix. --- diff --git a/lustre/tests/cfg/local.sh b/lustre/tests/cfg/local.sh index 3dfea6b..16c6c3b 100644 --- a/lustre/tests/cfg/local.sh +++ b/lustre/tests/cfg/local.sh @@ -44,7 +44,7 @@ MOUNTOPT="" [ "x$MDSISIZE" != "x" ] && MKFSOPT=$MKFSOPT" -i $MDSISIZE" [ "x$MKFSOPT" != "x" ] && - MKFSOPT="--mkfsoptions=\"$MKFSOPT\"" + MKFSOPT="--mkfsoptions=\\\"$MKFSOPT\\\"" [ "x$MDSCAPA" != "x" ] && MKFSOPT="--param mdt.capa=$MDSCAPA" [ "x$mdsfailover_HOST" != "x" ] && diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 5900a2b..4eacc54 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -683,11 +683,12 @@ run_test 17 "Verify failed mds_postsetup won't fail assertion (2936) (should ret test_18() { [ -f $MDSDEV ] && echo "remove $MDSDEV" && rm -f $MDSDEV echo "mount mds with large journal..." - OLDMDSSIZE=$MDSSIZE - MDSSIZE=2000000 - #FIXME have to change MDS_MKFS_OPTS - gen_config + local myMDSSIZE=2000000 + OLD_MDS_MKFS_OPTS=$MDS_MKFS_OPTS + + MDS_MKFS_OPTS="--mgs --mdt --fsname=$FSNAME --device-size=$myMDSSIZE --param sys.timeout=$TIMEOUT $MDSOPT" + gen_config echo "mount lustre system..." setup check_mount || return 41 @@ -695,14 +696,14 @@ test_18() { echo "check journal size..." FOUNDSIZE=`do_facet mds "debugfs -c -R 'stat <8>' $MDSDEV" | awk '/Size: / { print $NF; exit;}'` if [ $FOUNDSIZE -gt $((32 * 1024 * 1024)) ]; then - log "Success: mkfs creates large journals" + log "Success: mkfs creates large journals. Size: $((FOUNDSIZE >> 20))M" else error "expected journal size > 32M, found $((FOUNDSIZE >> 20))M" fi cleanup || return $? - MDSSIZE=$OLDMDSSIZE + MDS_MKFS_OPTS=$OLD_MDS_MKFS_OPTS gen_config } run_test 18 "check mkfs creates large journals"