From 0cfa71adf8efe56efa2cef3a344843d78160c8d5 Mon Sep 17 00:00:00 2001 From: anserper Date: Mon, 9 Mar 2009 21:29:08 +0000 Subject: [PATCH] b=18730 i=Andrew Perepechko o=Elena Gryaznova force quota_save_version to apply to all OSTs --- lustre/tests/sanity-quota.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 1.8.3.1