From: anserper Date: Mon, 9 Mar 2009 21:29:08 +0000 (+0000) Subject: b=18730 X-Git-Tag: v1_8_0_110~201 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0cfa71adf8efe56efa2cef3a344843d78160c8d5;p=fs%2Flustre-release.git b=18730 i=Andrew Perepechko o=Elena Gryaznova force quota_save_version to apply to all OSTs --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index fae4dec..09572aa 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -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)