Whamcloud - gitweb
LU-8157 tests: functional testing for swap layout
[fs/lustre-release.git] / lustre / tests / sanity.sh
index b4eb680..0d8ec04 100644 (file)
@@ -14888,6 +14888,18 @@ test_404() { # LU-6601
 }
 run_test 404 "validate manual {de}activated works properly for OSPs"
 
+test_405() {
+       [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.6.92) ] &&
+               skip "Layout swap lock is not supported" && return
+
+       check_swap_layouts_support && return 0
+
+       test_mkdir -p $DIR/$tdir
+       swap_lock_test -d $DIR/$tdir ||
+               error "One layout swap locked test failed"
+}
+run_test 405 "Various layout swap lock tests"
+
 #
 # tests that do cleanup/setup should be run at the end
 #