i=Andrew.Perepechko
test_22 18 <-> 20 interop: skip quota v1 testing
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
[ -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
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() {