Whamcloud - gitweb
b=22386 quota_save_version() fix: remove wildcard from conf_param
authorElena Gryaznova <grev@sun.com>
Fri, 19 Mar 2010 16:02:24 +0000 (19:02 +0300)
committerJohann Lombardi <johann@sun.com>
Mon, 22 Mar 2010 21:27:57 +0000 (22:27 +0100)
i=Andrew.Perepechko

test_22 18 <-> 20 interop: skip quota v1 testing

lustre/tests/sanity-quota.sh
lustre/tests/test-framework.sh

index dcbbf17..ee35501 100644 (file)
@@ -1734,6 +1734,11 @@ test_21() {
 run_test_with_stat 21 "run for fixing bug16053 ==========="
 
 test_22() {
+        local lustre_version=$(get_lustre_version mds)
+        if [[ $lustre_version != 1.8* ]] ; then
+                skip mds running $lustre_version, skip quota v1 testing
+                return
+        fi
         quota_save_version "ug1"
 
         stopall
index 5e3a7d8..c46629a 100644 (file)
@@ -448,7 +448,7 @@ quota_save_version() {
 
     [ -n "$type" ] && { $LFS quotacheck -$type $MOUNT || error "quotacheck has failed"; }
 
-    do_facet mgs "lctl conf_param ${FSNAME}-MDT*.md*.quota_type=$spec"
+    do_facet mgs "lctl conf_param ${FSNAME}-MDT*.$(get_md_name).quota_type=$spec"
     local varsvc
     local osts=$(get_facets OST)
     for ost in ${osts//,/ }; do
@@ -2804,6 +2804,16 @@ get_mds_mdt_device_proc_path() {
     fi
 }
 
+get_md_name () {
+    local major=$(get_mds_version_major)
+    local minor=$(get_mds_version_minor)
+    if [ $major -le 1 -a $minor -le 8 ] ; then
+        echo "mdt"
+    else
+        echo "mdd"
+    fi
+}
+
 ########################
 
 convert_facet2label() {