From 3b073c36fcce522ec278629a6d7be271ba35ef74 Mon Sep 17 00:00:00 2001 From: rread <rread> Date: Thu, 31 Oct 2002 22:24:34 +0000 Subject: [PATCH] Use the right fstype for the kernel being used. --- lustre/tests/local.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lustre/tests/local.sh b/lustre/tests/local.sh index ea6a82128a..44d92cb139 100755 --- a/lustre/tests/local.sh +++ b/lustre/tests/local.sh @@ -11,14 +11,24 @@ MDSSIZE=50000 OSTDEV=$TMP/ost1 OSTSIZE=100000 +kver=`uname -r | cut -d "." -f 1,2` + +case $kver in + 2.4) FSTYPE="--fstype=extN" ;; + 2.5) FSTYPE="--fstype=ext3" ;; + *) echo "Kernel version $kver not supported" + exit 1 + ;; +esac + # create nodes ${LMC} -o $config --node localhost --net localhost tcp || exit 1 # configure mds server -${LMC} -m $config --format --node localhost --mds mds1 $MDSDEV $MDSSIZE || exit 2 +${LMC} -m $config --format --node localhost $FSTYPE --mds mds1 $MDSDEV $MDSSIZE || exit 2 # configure ost -${LMC} -m $config --format --node localhost --ost $OSTDEV $OSTSIZE || exit 3 +${LMC} -m $config --format --node localhost $FSTYPE --ost $OSTDEV $OSTSIZE || exit 3 # create client config ${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 OSC_localhost || exit 4 -- GitLab