We need to check Lustre version to make sure the test for
new fixup/feature does not run on unsupported Lustre version.
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I63f9c2de6f76fda4758d0c92ee924d9b22570ff6
Reviewed-on: http://review.whamcloud.com/4019
Tested-by: Hudson
Reviewed-by: Wei Liu <sarah@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
run_test 153 "test if fdatasync does not crash ======================="
test_154() {
run_test 153 "test if fdatasync does not crash ======================="
test_154() {
+ [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.2.51) ]] ||
+ { skip "Need MDS version at least 2.2.51"; return 0; }
+
cp /etc/hosts $DIR/$tfile
fid=$($LFS path2fid $DIR/$tfile)
cp /etc/hosts $DIR/$tfile
fid=$($LFS path2fid $DIR/$tfile)