The tests 300[a-i] were added in version 2.7.0 for the newer
version of the code to test striped directory related features
and hence the tests 300[a,b,c,d] used to fail for the v2.7.0
and above client with older server versions. Added skip
statement for the tests if server is of an older versions.
Seagate-bug-id: MRP-3393
Change-Id: I26f271c1a4aa62c8f41c391e0c595f1ccaf18f8b
Signed-off-by: Kirtankumar Krishna Shetty <kirtan.shetty@seagate.com>
Reviewed-on: http://review.whamcloud.com/19698
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
+ [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] &&
+ skip "skipped for lustre < 2.7.0" && return
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
run_test 300a "basic striped dir sanity test"
test_300b() {
run_test 300a "basic striped dir sanity test"
test_300b() {
+ [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] &&
+ skip "skipped for lustre < 2.7.0" && return
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
local i
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
local i
run_test 300b "check ctime/mtime for striped dir"
test_300c() {
run_test 300b "check ctime/mtime for striped dir"
test_300c() {
+ [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] &&
+ skip "skipped for lustre < 2.7.0" && return
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
local file_count
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
local file_count
run_test 300c "chown && check ls under striped directory"
test_300d() {
run_test 300c "chown && check ls under striped directory"
test_300d() {
+ [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] &&
+ skip "skipped for lustre < 2.7.0" && return
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
local stripe_count
[ $PARALLEL == "yes" ] && skip "skip parallel run" && return
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
local stripe_count