Whamcloud - gitweb
b=18730
authoranserper <anserper>
Mon, 9 Mar 2009 21:29:08 +0000 (21:29 +0000)
committeranserper <anserper>
Mon, 9 Mar 2009 21:29:08 +0000 (21:29 +0000)
i=Andrew Perepechko
o=Elena Gryaznova

force quota_save_version to apply to all OSTs

lustre/tests/sanity-quota.sh

index fae4dec..09572aa 100644 (file)
@@ -1195,7 +1195,12 @@ run_test_with_stat 14a "test setting quota on root ==="
 # save quota version (both administrative and operational quotas)
 quota_save_version() {
         do_facet mgs "lctl conf_param ${FSNAME}-MDT*.mdt.quota_type=$1"
-        do_facet mgs "lctl conf_param ${FSNAME}-OST*.ost.quota_type=$1"
+        local varsvc
+        local osts=$(get_facets OST)
+        for ost in ${osts//,/ }; do
+                varsvc=${ost}_svc
+                do_facet mgs "lctl conf_param ${!varsvc}.ost.quota_type=$1"
+        done
 }
 
 # set quota version (both administrative and operational quotas)