Whamcloud - gitweb
LU-2390 tests: read quota_type from MDS node
authorNiu Yawei <niu@whamcloud.com>
Tue, 27 Nov 2012 09:14:23 +0000 (04:14 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 30 Nov 2012 19:59:09 +0000 (14:59 -0500)
In the quota_type() of t-f, we should read quota_type from MDS node
instead of MGS.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Idad791d0a39e36305845c0623343d0f58b706ee0
Reviewed-on: http://review.whamcloud.com/4681
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/test-framework.sh

index 584e19f..521a58a 100644 (file)
@@ -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),