Whamcloud - gitweb
b=14471
authorgrev <grev>
Wed, 15 Oct 2008 16:06:40 +0000 (16:06 +0000)
committergrev <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

index 6441c9d..1dcc9ed 100644 (file)
@@ -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() {