Whamcloud - gitweb
b=16716
authorgrev <grev>
Fri, 29 Aug 2008 12:39:56 +0000 (12:39 +0000)
committergrev <grev>
Fri, 29 Aug 2008 12:39:56 +0000 (12:39 +0000)
i=Nathan.Rutman
restore the original at_max on all nodes

lustre/tests/test-framework.sh

index 8403ff7..5c3cdf8 100644 (file)
@@ -1069,9 +1069,16 @@ at_is_enabled() {
 }
 
 at_max_get() {
+    local facet=$1
+
     at_is_valid || error "invalid call"
 
-    do_facet $1 "cat $AT_MAX_PATH"
+    # suppose that all ost-s has the same at_max set
+    if [ $facet == "ost" ]; then
+        do_facet ost1 "cat $AT_MAX_PATH"
+    else
+        do_facet $facet "cat $AT_MAX_PATH"
+    fi
 }
 
 at_max_set() {
@@ -1080,6 +1087,7 @@ at_max_set() {
 
     at_is_valid || error "invalid call"
 
+    local facet
     for facet in $@; do
         if [ $facet == "ost" ]; then
             for i in `seq $OSTCOUNT`; do