From d52ad33477b39707a4ff37a393698aa1a3d31c00 Mon Sep 17 00:00:00 2001 From: fanyong Date: Thu, 12 Mar 2009 02:27:21 +0000 Subject: [PATCH] Branch HEAD b=18730 i=Andrew Perepechko o=Elena Gryaznova force quota_save_version to apply to all OSTs --- lustre/tests/sanity-quota.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 4391e0e..9073678 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -1197,8 +1197,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*.mdd.quota_type=$1" - do_facet mgs "lctl conf_param ${FSNAME}-OST*.ost.quota_type=$1" - sleep 5 + 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 } test_15(){ -- 1.8.3.1