From: Niu Yawei Date: Tue, 27 Nov 2012 09:14:23 +0000 (-0500) Subject: LU-2390 tests: read quota_type from MDS node X-Git-Tag: 2.3.57~19 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=6f2355435eca7541ee7b4804930ac34d580f71c9 LU-2390 tests: read quota_type from MDS node In the quota_type() of t-f, we should read quota_type from MDS node instead of MGS. Signed-off-by: Niu Yawei Change-Id: Idad791d0a39e36305845c0623343d0f58b706ee0 Reviewed-on: http://review.whamcloud.com/4681 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 584e19f..521a58a 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1043,13 +1043,14 @@ quota_save_version() { # XXX This function is kept for interoperability with old server (< 2.3.50), # it should be removed whenever we drop the interoperability for such # server. -quota_type () { - local fsname=${1:-$FSNAME} - local rc=0 - do_facet mgs lctl get_param mdd.${fsname}-MDT*.quota_type || rc=$? - do_nodes $(comma_list $(osts_nodes)) \ - lctl get_param obdfilter.${fsname}-OST*.quota_type || rc=$? - return $rc +quota_type() { + local fsname=${1:-$FSNAME} + local rc=0 + do_facet $SINGLEMDS lctl get_param mdd.${fsname}-MDT*.quota_type || + rc=$? + do_nodes $(comma_list $(osts_nodes)) \ + lctl get_param obdfilter.${fsname}-OST*.quota_type || rc=$? + return $rc } # XXX This function is kept for interoperability with old server (< 2.3.50),