From c4440c3d40caa8b5c7ef750b9516255e9efe109e Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Thu, 4 Jun 2015 23:18:31 -0700 Subject: [PATCH] LU-5423 tests: add version check to sanity-sec test 4 This patch adds Lustre version check codes into sanity-sec test 4 to make the test interoperate with servers that do not have the following change: Lustre-commit: 2bc5bcb7efa247fcd8cc65d013ffc9f6c33dd788 Lustre-change: http://review.whamcloud.com/12476 Signed-off-by: Jian Yu Change-Id: Idbbf82fb4fb580b3a695b3512b54aae3602eca60 Reviewed-on: http://review.whamcloud.com/15153 Reviewed-by: Fan Yong Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bobi Jam Reviewed-by: Oleg Drokin --- lustre/tests/sanity-sec.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/tests/sanity-sec.sh b/lustre/tests/sanity-sec.sh index fe9a554..03e3712 100755 --- a/lustre/tests/sanity-sec.sh +++ b/lustre/tests/sanity-sec.sh @@ -292,6 +292,13 @@ run_test 3 "rootsquash =============================" # as for remote client, the groups of the specified uid on MDT # will be obtained by upcall /sbin/l_getidentity and used. test_4() { + local server_version=$(lustre_version_code $SINGLEMDS) + + [[ $server_version -ge $(version_code 2.6.93) ]] || + [[ $server_version -ge $(version_code 2.5.35) && + $server_version -lt $(version_code 2.5.50) ]] || + { skip "Need MDS version at least 2.6.93 or 2.5.35"; return; } + if [ "$CLIENT_TYPE" = "remote" ]; then do_facet $SINGLEMDS "echo '* 0 rmtown' > $PERM_CONF" do_facet $SINGLEMDS "lctl set_param -n $IDENTITY_FLUSH=-1" -- 1.8.3.1