From: liuy Date: Tue, 14 Aug 2007 02:41:16 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~1341 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b930af0460cd18e79ff22eb366b371528ca6357c;p=fs%2Flustre-release.git Branch b1_6 b=11679 i=adilger, deen add osc_to_ost() function --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 19c687b..57bd529 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -937,3 +937,15 @@ canonical_path() { (cd `dirname $1`; echo $PWD/`basename $1`) } +######################## +# helper functions + +osc_to_ost() +{ + osc=$1 + ost=`echo $1 | awk -F_ '{print $3}'` + if [ -z $ost ]; then + ost=`echo $1 | sed 's/-osc.*//'` + fi + echo $ost +}