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:
9596e80
)
b=14471
author
grev
<grev>
Wed, 15 Oct 2008 16:06:40 +0000
(16:06 +0000)
committer
grev
<grev>
Wed, 15 Oct 2008 16:06:40 +0000
(16:06 +0000)
i=Adilger
replace lustre proc by lctl [set|get]_param
lustre/tests/test-framework.sh
patch
|
blob
|
history
diff --git
a/lustre/tests/test-framework.sh
b/lustre/tests/test-framework.sh
index
6441c9d
..
1dcc9ed
100644
(file)
--- a/
lustre/tests/test-framework.sh
+++ b/
lustre/tests/test-framework.sh
@@
-1711,6
+1711,14
@@
calc_llite_stats() {
echo $res
}
+calc_sum () {
+ awk 'BEGIN {s = 0}; {s += $1}; END {print s}'
+}
+
+calc_osc_kbytes () {
+ $LCTL get_param -n osc.*[oO][sS][cC][-_]*.$1 | calc_sum
+}
+
# save_lustre_params(node, parameter_mask)
# generate a stream of formatted strings (<node> <param name>=<param value>)
save_lustre_params() {