Whamcloud - gitweb
LU-1896 tests: check Lustre version in sanity test 154
[fs/lustre-release.git] / lustre / tests / sanity.sh
index 6d8d4d0..cec2c8c 100644 (file)
@@ -7805,6 +7805,9 @@ test_153() {
 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)