X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=4e192ece680db6e574836b068046a32e07bcb8de;hp=6dd2c7c4390fb1877586690a364fd9481d9a5197;hb=27c51b5623123ba3208569ecdef343f61646c7e4;hpb=d614ff561cb6bd9a9b35310c99dd991c55797d97 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 6dd2c7c..4e192ec 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -15,9 +15,13 @@ ALWAYS_EXCEPT="$SANITY_EXCEPT 42a 42b 42c 77k" # skipped tests: LU-8411 LU-9096 LU-9054 .. ALWAYS_EXCEPT=" 407 253 312 $ALWAYS_EXCEPT" +if $SHARED_KEY; then +# bug number for skipped tests: LU-9795 (all below) + ALWAYS_EXCEPT="$ALWAYS_EXCEPT 17n 60a 133g 300f" +fi + # Check Grants after these tests GRANT_CHECK_LIST="$GRANT_CHECK_LIST 42a 42b 42c 42d 42e 63a 63b 64a 64b 64c" - SRCDIR=$(cd $(dirname $0); echo $PWD) export PATH=$PATH:/sbin @@ -5515,7 +5519,7 @@ test_56wb() { run_test 56wb "check lfs_migrate pool support" test_56wc() { - local file1="$DIR/$tdir/file 1" + local file1="$DIR/$tdir/file1" echo -n "Creating test dir..." test_mkdir $DIR/$tdir &> /dev/null || error "cannot create dir" @@ -15598,18 +15602,6 @@ test_236() { } run_test 236 "Layout swap on open unlinked file" -# test to verify file handle related system calls -# (name_to_handle_at/open_by_handle_at) -# The new system calls are supported in glibc >= 2.14. - -test_237() { - echo "Test file_handle syscalls" > $DIR/$tfile || - error "write failed" - check_fhandle_syscalls $DIR/$tfile || - error "check_fhandle_syscalls failed" -} -run_test 237 "Verify name_to_handle_at/open_by_handle_at syscalls" - # LU-4659 linkea consistency test_238() { local server_version=$(lustre_version_code $SINGLEMDS) @@ -19808,6 +19800,38 @@ test_807() { } run_test 807 "verify LSOM syncing tool" +check_som_nologged() +{ + local lines=$($LFS changelog $FSNAME-MDT0000 | + grep 'x=trusted.som' | wc -l) + [ $lines -ne 0 ] && error "trusted.som xattr is logged in Changelogs" +} + +test_808() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.11.55) ] && + skip "Need MDS version at least 2.11.55" && return + + # Registration step + changelog_register || error "changelog_register failed" + + touch $DIR/$tfile || error "touch $tfile failed" + check_som_nologged + + dd if=/dev/zero of=$DIR/$tfile bs=1048576 count=1 || + error "write $tfile failed" + check_som_nologged + + $TRUNCATE $DIR/$tfile 1234 + check_som_nologged + + $TRUNCATE $DIR/$tfile 1048576 + check_som_nologged + + # Deregistration step + changelog_deregister || error "changelog_deregister failed" +} +run_test 808 "Check trusted.som xattr not logged in Changelogs" + # # tests that do cleanup/setup should be run at the end #