Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bc1ff3
)
Branch b1_6
author
liuy
<liuy>
Tue, 14 Aug 2007 02:41:16 +0000
(
02:41
+0000)
committer
liuy
<liuy>
Tue, 14 Aug 2007 02:41:16 +0000
(
02:41
+0000)
b=11679
i=adilger, deen
add osc_to_ost() function
lustre/tests/test-framework.sh
patch
|
blob
|
history
diff --git
a/lustre/tests/test-framework.sh
b/lustre/tests/test-framework.sh
index
19c687b
..
57bd529
100644
(file)
--- 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
+}